[antlr-interest] Running Antlr-3.0

G R relationalalgebra at gmail.com
Sun Dec 9 09:29:26 PST 2007


Using the classpath, you must just put the path of the directory where your
jar are.
Instead of
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
put ;C:\antlr-3.0.1\lib in your path.

G. R.

2007/12/9, Adam Cooney <ad_cooney at hotmail.com>:
>
>  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
>
> ------------------------------
> Are you the Quizmaster? Play BrainBattle with a friend now!<http://specials.uk.msn.com/brainbattle>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20071209/e08cc738/attachment-0001.html 


More information about the antlr-interest mailing list