NoClassDefFoundError
Hm... I generate a new project and a new Java file. Its got the basics and nothing but:
publicclass client{
publicstaticvoid main(String[] args){
}
}
So I compile it: javac client.java
Look, no complaints! Awesome! Run it!
java client.
Exception in thread"main" java.lang.NoClassDefFoundError: client
What? How? Who? Heeeeeeeeeeeeeeeeeelp!
I've got J2SE and J2EE installed by the way...
[754 byte] By [
yitzlea] at [2007-10-2 20:09:15]

Get rid of [blah]\jre1.5.0_05\lib\ext\QTJava.zip in the CLASSPATH system environment variable. Even better get rid of the CLASSPATH system environment variable.
I would personally also get rid of the QTJava.zip file located under [blah]\jre1.5.0_05\lib\ext.
All those things were installed by QuickTime.
But QuickTime doesn't need those things to work properly.
Regards
I usually use bluej so I didn't notice this error until I had to use jflex on the command line.. It seems that altough I have my classpath set correctly if I use java -classpath . client i get: could not create Java virtual machine
btw my classpath is C:\j2sdk1.4.2_04\bin
Message was edited by:
me1357