[antlr-interest] How to call self-build ANTLR correctly?

Johannes Luber jaluber at gmx.de
Tue Jul 3 13:50:22 PDT 2007


Terence Parr wrote:
> you need the bin not bin\org\antlr in your path.  Also add the runtime dir.

I do the following:

D:\>java -cp "D:\Install Files\ANTLR\antlr-source\bin\org\antlr\runtime"
"D:\Install Files\ANTLR\antlr-source\bin"\org.antlr.Tool

The output:

Exception in thread "main" java.lang.NoClassDefFoundError: D:\Install
Files\ANTLR\antlr-source\bin\org/antlr/Tool
> 
> Does build.xml help?

I have never used ANT, so I have no idea what you could mean with that
sentence.

Best regards,
Johannes Luber


More information about the antlr-interest mailing list