Small Java problem, probably a quick answer

Status
Not open for further replies.

iceburn

Wise, Aged Ars Veteran
195
Subscriptor
I'm trying to write a little Java application, but I keep getting the following error:

code:<HR>
Code:
C:\Java\Code\learn>java TestJava.class 
Exception in thread "main" java.lang.NoClassDefFoundError: TestJava/class

Tried setting the $CLASSPATH env but it doesn't seem to help at all. Probably a simple solution, but this is the first program I've written on my own since venturing over from C++.
 
Status
Not open for further replies.