[antlr-interest] Re: How to use antlr

Pete Forman pete.forman at westerngeco.com
Thu Jun 17 04:16:00 PDT 2004


At 2004-06-17 11:04 +0000, jay_ayliff wrote:
>Thanks for the clarification. If only I can get it to work. Just now
>I've spent three hours at the "Exception in thread "main"
>java.lang.NoClassDefFoundError: Antlr/Tool" ...hurdle, which appears
>to be some kind of initiation rite.
>
>ANTLR is in F:\antlr-2.7.3, and I've set my path environment
>variable to:
>
>%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\system32
>\WBEM;f:\antlr-2.7.3;f:\antlr-2.7.3/antlr.jar;
>
>But I still get the error when I run java antlr.Tool from the
>command line. I put a little .BAT file in the f:\antlr-2.7.3 folder
>and the command line finds that. Is there something wrong in the way
>I'm referring to the JAR file?

Yes, it needs to be in CLASSPATH rather than PATH.  (There are other
ways to do this.)

-- 
Pete Forman                -./\.-  Disclaimer: This post is originated
WesternGeco                  -./\.-   by myself and does not represent
pete.forman at westerngeco.com    -./\.-   opinion of Schlumberger, Baker
http://petef.port5.com           -./\.-   Hughes or their divisions.



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
     antlr-interest-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
 



More information about the antlr-interest mailing list