Helloword program, all Java learners the first program in life, Ah Ma, the Foundation is too poor, error
1 Public classhelloword{2 3 PublicHelloword () {4 Public Static voidMain (string[] args) {5System.out.println ("111111111");//enter out and press the TAB key to enter System.out.println6 }7 }8 9 Ten}
1th mistake:
Failed to establish a connection with the target VM
Because the JDK is to be configured in JCreator
Jcreator-configure-option-jdk Profiles-new joins the native JDK
2nd mistake:
Error: The main class could not be found or could not be loaded Helloword
The statement has an error.
The construction method cannot be written in the main method.
Check that there may be some methods that are not java.
The correct one should be:
Public class Liujuan { publicstaticvoid main (string[] args) { System.out.println ("111111111"); // enter out and press the TAB key to enter System.out.println } }
Compiling Java file, error: Failed to establish a connection with the target VM