[antlr-interest] Running Antlr-3.0

G R relationalalgebra at gmail.com
Sun Dec 9 09:57:41 PST 2007


First try a reboot if you haven't. CLASSPATH with windows is such a crapp...
Secondly, using the maillinglist, when you reply to a message, make it to
antlr-interest at antlr.org without changing the subject ;)

Good luck!

G.R.

2007/12/9, Adam Cooney <ad_cooney at hotmail.com>:
>
>  I changed the classpath to
> ;C:\antlr-3.0.1\lib
>
> Then in command prompt I did:
> C:\antlr-3.0.1\examples-v3\LL-star\
> Followed by:
> java org.antlr.Tool SimpleC.g
>
> And I still get the same damn message:
> C:\antlr-3.0.1\examples-v3\java\LL-star>java org.antlr.Tool SimpleC.g
> Exception in thread "main" java.lang.NoClassDefFoundError: org/antlr/Tool
>
> Makes no sense to me why it wont work. Have also tried doing
> C:\antlr-3.0.1\examples-v3\java\LL-star>set CLASSPATH= C:\antlr-3.0.1\lib;
> C:\antlr-3.0.1\examples-v3\java\LL-star>java org.antlr.Tool SimpleC.g
> Exception in thread "main" java.lang.NoClassDefFoundError: org/antlr/Tool
>
> I know this is just a stupid error somewhere, but it is getting rather
> annoying
>
>
>  ------------------------------
> Date: Sun, 9 Dec 2007 18:29:26 +0100
> From: relationalalgebra at gmail.com
> To: antlr-interest at antlr.org
> Subject: Re: [antlr-interest] Running Antlr-3.0
>
> 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>
>
>
>
> ------------------------------
> Can you guess the film? Search Charades! <https://www.searchcharades.com>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20071209/64f1d649/attachment.html 


More information about the antlr-interest mailing list