[antlr-interest] catch Exception in thread "main" when buildimg C++ runtime lib

jbb at acm.org jbb at acm.org
Thu Jul 17 07:37:31 PDT 2003

I am not familiar with the antlr build process you are using but I do
notice that your config script reports:

You have CLASSPATH /home/abt/cm/c++/antlr-2.7.2/antlr.jar:., hope it
is correct

                   notice   ^^^^^^^^^

and then later in the sequence of make's you try to invoke antlr as:

make[1]: Entering directory `/home/abt/cm/antlr-2.7.2/antlr'
java -cp /home/abt/cm/antlr-2.7.2/antlrall.jar antlr.Tool   antlr.g
Exception in thread "main" java.lang.NoClassDefFoundError: antlr/Tool
make[1]: *** [.antlr.g] Error 1
make[1]: Leaving directory `/home/abt/cm/antlr-2.7.2/antlr'

notice that the -cp phrase of the java compile command wants the antlr
jar file to be in ..../cm/antlr.... and not in ..../cm/c++/antlr....

maybe copy or move the antlr.jar file to the location that the java
compile command is expecting?

hope this helps....



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 

More information about the antlr-interest mailing list