I have solved the problem. The problem was that ant by default
compiles java files with debug=off. If debug information is not
present, then the lines at which the errors occur cannot be
determined. However, after i changed the javac tag with debug="on", i
got all the information including the line number.
thank you!