[antlr-interest] CANT RUN ANTLR ON MY SYSTEM

Terence Parr parrt at cs.usfca.edu
Sat Sep 3 14:34:06 PDT 2005


Hi, what you have is a Java usage issue.  You most likely need to  
learn about the CLASSPATH.  It's a strange system for Java.  My  
course notes will help:

http://www.cs.usfca.edu/~parrt/course/601/lectures/java.tools.html

Terence

On Sep 3, 2005, at 4:23 AM, OMUYE ELIJAH wrote:

> I have somewhat successfully installed antlr-2.7.5 on my system but  
> find it difficult 2 run the simple parsing data program described  
> by Terence Parr.
> After compiling the file T.g using (all output files are in the  
> myantlrp folder in the root of c:)
>
> java antlr.Tool -o C:\myantlrp C:\myantlrp\T.g
>
> and further compiling with (at d command prompt)
>
> javac C:\myantlrp\*.java
>
> and running d Main class resulting 4rm it, the display at the  
> comand prompt is
>
> Exception in thread "main" java.lang.NoclassDefFound : Main
>
> Can anyone help me with resolving this problem?
>
>
> EZAGA ELIJAH OMUYE.
>
> Start your day with Yahoo! - make it your home page

--
CS Professor & Grad Director, University of San Francisco
Creator, ANTLR Parser Generator, http://www.antlr.org
Cofounder, http://www.jguru.com



More information about the antlr-interest mailing list