[antlr-interest] Running Antlr-3.0

Adam Cooney ad_cooney at hotmail.com
Sun Dec 9 09:13:51 PST 2007


Hi all, 
I recently installed Antlr-3.0 only when I attempt to run a grammar it gives me an error:

C:\antlr-3.0.1>java src.org.antlr.Tool Expr.g
Exception in thread "main" java.lang.NoClassDefFoundError: src/org/antlr/Tool
 
The site says its due to classpath being incorrect, any ideas why the following is wrong because it seems correct to me.
 
.;C:\antlr-3.0.1\lib\antlr-3.0.1.jar; C:\antlr-3.0.1\lib\antlr-2.7.7.jar;C:\antlr-3.0.1\lib\antlr-runtime-3.0.1.jar;C:\antlr-3.0.1\lib\stringtemplate-3.1b1.jar
 
The cmd prompt is set to folder c:\antlr-3.0.1\, which is also where the grammar resides. Any quick help for this really basic (and probably stupidly simple) problem is greatly appreciated.
Thanks
Adam
_________________________________________________________________
Get free emoticon packs and customisation from Windows Live. 
http://www.pimpmylive.co.uk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20071209/ad5bae81/attachment.html 


More information about the antlr-interest mailing list