QUOTE(rpjd @ 21 Mar, 2007 - 01:13 PM)

I have just re-installed jdk1.6.0 and jakarta tomcat5.0.28 for the umteenth time. I am trying to verify the jdk installation in or to be able to run .java, .jsp files on tomcat. I have added the classpath for JAVA_HOME=c:\Program Files\Java\jdk1.6.0. I saved the java file HelloWorld into a folder called Java on c:\, so c:\Java is the file path.
When I ran javac c:\Java\HelloWorld.java, all seemed ok, no error messages. But when I executed
java c:\Javac\HelloWorld.java I got the error message
Exception in thread "main" java.lang.NoClassDefFoundError c:\Java|helloWorld/class
can anyone advise what I might be doing wrong.
RPJD

Deleted jdk1.6.0 and installed j2sdk1.4.2_13 instead. from my HelloWorld dir I ran
java -classpath . HelloWorld
this gave me "HelloWorld"
from my JAVA_HOME dir I ran
javac c:\ProjectFolderName\HelloWorld.java
this compiled ok
then ran
java c:\ProjectFolderName\HelloWorld.java
and got
Exception in thread "main" java.lang.NoClassDefFoundError.
Can someone please explain?
RPJD