I composed a code as below:
package duanbo;
public class HelloWorld
{
public static void main(String arg[])
{
System.out.println("Hello World");
}
}
The HelloWorld.java was put on root of E: , I excuse the compile/run process :
E:\>javac HelloWorld.java

E:\>java HelloWorld
The first step was ok. And throw out "Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld (wrong name: duanbo/HelloWorld)" at step 2.
I think may be I should move the HelloWorld.class to E:\duanbo. So did it.
Redo the up steps. The erroe was same as before.
After some search, I got the right command.
E:\>javac HelloWorld.java

E:\>java duanbo.HelloWorld
