java.lang.NoClassDefFoundError

Hi @ all,

I wrote a app with 3 classes inside of a package. One of the 3 classes is my main class with the main-method.

I wrote the stuff with Eclipse and I had no problems. The code is compilable and runs inside of Eclipse.

If I want to execute the code outside Eclipse with my JRE I will get a "java.lang.NoClassDefFoundError". I tried to recompile the code outside Eclipse with "javac -cp d:\workspace\testserver MainServer.java" but then I will get "symbol not found" errors with my own classes, I want to initiate.

What's wrong?

Thank you very much in advance.

Bye

Ben

[623 byte] By [bemar412a] at [2007-10-2 13:46:01]
# 1
Hi,try to check if your classpath for java core libraries is correct: http://www.dynamic-apps.com/tutorials/classpath.jspL.P.
lukika at 2007-7-13 11:43:20 > top of Java-index,Developer Tools,Java Compiler...
# 2
Try out usingjavac -d d:\workspace\*.java
ShivaKatulaa at 2007-7-13 11:43:20 > top of Java-index,Developer Tools,Java Compiler...