I have used ANTLR to parse Java code and everything works well. But the problem is getting the following error when I run it in on a Mac:
javac -cp antlrworks-1-1.4.3.jar *.java Main.java:18: cannot find symbol symbol : method javaSource() location: class JavaParser CommonTree tree = (CommonTree)parser.javaSource().getTree(); ^ 1 error