I get this when I try to run the simplest program...
Exception in thread "main" java.lang.NoClassDefFoundError: newp
Here are my Windows XP Prof edition's sys variables.
--------------------------------------------------------------
JAVA_HOME = C:\j2sdk1.4.2_11
PATH = C:\Perl\bin\;C:\j2sdk1.4.2_11\bin
CLASSPATH = C:\Program
Files\QuickTime\QTSystem\QTJava.zip;C:\j2sdk1.4.2_11\bin
---------------------------------------------------------------
What else do I need to set?
I did notice that in the Java Control Panel under JNLP Runtime
Settings. The Product says that I'm running jre1.5.0_06\bin\javaw.exe
Could this have something to do with it?
Thank you.
-ac
You're not giving quite enough info to solve your problem.
To start I would unset the CLASSPATH variable. Normally there will be
no class structure under jdk\bin and you will not need the QT zip that
often. If you need to set a classpath it's generally better to do it on
the command line:
java -cp C:\Program Files\QuickTime\QTSystem\QTJava.zip ...
Now, assuming you're trying to run a program called "newp":
Make sure that the directory you're running from contains a file
"newp.class".
Simply type "java newp" and it should work if and only if you did not
specify a package for the newp class.
If this does not solve the problem, then you should provide more
information on the problem. Source code, typed commands, directory
structure, full error message, ...
Regards,
Bart
jac - 04 Apr 2006 07:39 GMT
Thanks Bart... that fixed it. I forgot that CLASSPATH was as the name
implies, a path for java class designation... your suggestiong solved
my problem.
-ac
>NoClassDefFoundError
see http://mindprod.com/jgloss/caq.html

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.