1. Enter Java Hello under DOS command with the following results:
Bad command or the file name, which can be caused by:
Bad command or file name (Error command or file name) Bad command or file name is incorrect for commands or file names that do not recognize the input command. You should check to make sure that the command file is found in the specified directory or on the search path specified with the path command, to ensure the correctness of the input command.
2. Enter Java Hello under DOS command with the following results:
Exception in thread "main" Java.lang.NoClassDefFoundError:Hello, possible causes are:
Main method input error, may case not differentiate path incorrect
3. Under the path of the Hello.class
input command:java hello.class, what results will appear? Why?
The main class could not be found or could not be loaded. The reason is: running Java command error, unable to find the correct path
Workaround: When the Javac is compiled successfully, the. class file is automatically generated, and the Java command can be run directly by entering Java Hello
First Java applet