Use eclipse to create a java Project
Note:Prerequisites: You must install the JDK environment before installing eclipse. The installation methods include: Download JDK, install JDK, configure JDK environment variables, and test whether JDK is installed properly. For detailed steps, see blog:
- System. out. println ("HelloWorldbyhttp: // blog.csdn.net/unix21 ");
7). Compile and runClick Run -- Run on the menu bar to compile and Run the program, or press Ctrl + F11.
There are many other methods to start the program, and eclipse itself has many shortcut buttons.
After the program is compiled and run successfully, the result is output in the Console window.
Note:
Check whether the JDK installation environment is consistent with the eclipse environment.
1. Open eclipse and go to Window --> Preferences --> Java --> Installed JREs. Check whether the path is consistent with the jdk path we installed.
2. Change the Java Compiler version in eclipse to the maximum. In Window --> Preferences --> Java --> Compiler.
3. In order to prevent the appearance of a space in future development from becoming a small black spot or something, in eclipse, expand Window --> Preferences --> General --> Editors --> Text Editors to remove the hooks before Show whitespace characters.