[antlr-interest] problem with classpath under winxp
    Patrik Suzzi 
    imolanet at yahoo.it
       
    Wed Jul 30 05:59:24 PDT 2003
    
    
  
Problem:
Help !! I'm despond.
I've encountered following problem: 
(I work under Windows XP machine)
1) When I set the environment variable as follows:
	CLASSPATH=c:\antlr-2.7.2\antlr.jar
I'm able to run antlr generator, but I can't run any Java program.
For example the simple program that print hello world fail, with
-> Exception in thread "main" java.lang.NoClassDefFoundError: Test
2) Then if i delete CLASSPATH variable, and restart the command line 
prompt,
 the aforementioned program will work fine, but antlr doesn't work, 
except if I explicit use the -cp option, like as follows
	java -cp c:\antlr-2.7.2\antlr.jar antlr.Tool file.g
3) Ok ! i've generated antlr's output files, now I will compile ..
but when compile javac needs either java CLASSPATH variable, 
either antlr CLASSPATH variable.
If anyone, gently, could respond me I will appreciate too ..
Patrik Suzzi
 
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
    
    
More information about the antlr-interest
mailing list