Java Runtime Prob.

Respected all Java Gurusi am new prof. giving a hand to java. i wrote a very basic prog. it is successfull complied but when i run it i reciver a error sayingException in Java.lang.NoClassDefFound. Please help me to sort out this problem. i will be thankful.
[300 byte] By [vatsjaia] at [2007-10-2 0:48:53]
# 1

Change the cmd/command window prompt to the directory that contains the classfile to be run, and issue a command like this:

java -cp . <nameOfTheClass>

Include the period and the surrounding spaces. Do not include the .class suffix in the command.

If that works, it was a classpath problem. If you want to use other forms of the command, read and learn about how to use the classpath, and how it is set. See the java tools (java, javac, etc) documentation for that.

ChuckBinga at 2007-7-15 17:58:59 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...