[antlr-interest] Running Antlr-3.0

Adam Cooney ad_cooney at hotmail.com
Sun Dec 9 10:10:17 PST 2007


Sigh, still doesn't work. I know this is a lot to ask, but can someone really quickly write a step guide to installing this thing.
I've downloaded "antlr-3.0b7.tar.gz", extracted it into the C:\ so its inthe folder
C:\antlr-3.0b7, with the jar files in the folder C:\antlr-3.0b7\lib. I then set the classpath variable to ;C:\antlr-3.0b7\lib   . Then i typed in java org.antlr.Tool and got the error message. So I am quite confused, i checked the tool file and well there isnt a .class file there and there isnt a .class file in any other directory in the org\antlr\ directories, tried compiling them but i get loads of errors so i assume that isn't needed. 


Date: Sun, 9 Dec 2007 18:57:41 +0100From: relationalalgebra at gmail.comTo: ad_cooney at hotmail.com; antlr-interest at antlr.orgSubject: Re: [antlr-interest] Running Antlr-3.0First 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.gException in thread "main" java.lang.NoClassDefFoundError: org/antlr/Tool Makes no sense to me why it wont work. Have also tried doingC:\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.gException 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 +0100From: relationalalgebra at gmail.comTo: antlr-interest at antlr.orgSubject: 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.jarput ;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.gException 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. ThanksAdam

Are you the Quizmaster? Play BrainBattle with a friend now! 

Can you guess the film? Search Charades!
_________________________________________________________________
Who's friends with who and co-starred in what?
http://www.searchgamesbox.com/celebrityseparation.shtml
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20071209/43a17b93/attachment.html 


More information about the antlr-interest mailing list