Confuse the class path problem

Category: Java SE
 
chao7826761
2010-03-31 11:34:39

Sponsored Links
I got a JHotDraw program, when running the program need to set JhotDraw classpath. JHotDraw
readme instructions to set the absolute path, I installed directory is C: \ JHotDraw_5_3 \ JHotDraw, I In the classpath environment variable to add to this class path, but after running the program the following error:
C: \> java CH.ifa. draw.samples.javadraw.JavaDrawApp
Exception in thread "main" java.lang.NoClassDefFoundError: CH / ifa / draw / samples / j
avadraw / JavaDrawApp ; ;
still said no classes.
But if I add operating parameters:
C: \> java-classpath C: \ JHotDraw_5_3 \ JHotDraw CH.ifa.draw.samples.javadraw.JavaDr
awApp
program can run normally.
Where does the problem occur? Thank you for your help!

Sponsored Links

shydevil
2010-03-31 11:51:17
your classpath there plus.;,. refers to the current directory
ni321456
2010-03-31 12:03:34
your classpath environment variable problem!
you check, classpath environment variable should be written so that CLASSPATH = .....
ellipsis is you that value, as well as the jdk lib jre's lib, but also There are current directory "."
sxyshang
2010-03-31 12:18:53
Is your classpath environment variable problem!
you check, classpath environment variable should be written so that CLASSPATH = .....
ellipsis is you that value, as well as the jdk lib jre's lib, but also There are current directory "."
cjy790308
2010-03-31 12:30:02
to all:
current directory and C: \ JHotDraw_5_3 \ JHotDraw I have joined the environmental variables, there is no other possible causes, it was installed over JHotDraw do? Encountered this problem? Help, thank you.
Domain and server ip had changed since 8/23/2013. Suspend the user registration and posts for program maintenance.