Exception in thread "main" java.lang.NoClassDefFoundError: DailyAdviceServer/jav
a
Caused by: java.lang.ClassNotFoundException: DailyAdviceServer.java
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: DailyAdviceServer.java. Program will exit.
The same thing happen when I execute my DailyAdviceClient.class
The program works fine on netbeans though...but on prompt ....
The two codes are like this:
And:
What am i doing wrong???