First download Eclipse: eclipse-java-juno-SR2-win32-x86_64.zip on the Internet Baidu
Eclipse is a green software. It can be directly run without installation.
But it fails, as shown in figure
I don't know what the problem is
...
After consulting old students, found eclipse is a platform, if you need to add Java Runtime Library: jdk-7u2-windows-x64.exe
Download jdk-7u2-windows-x64.exe. run eclipse.exe again after installation is successful.
The long-awaited interface appears
Create a project
1. Enter the project name.
2. Use the default configuration. Of course, you can set the source code folder and the compiled bin folder.
Add a Java Project
Project selection
The new project does not have a file. Now add a class
Right-click and choose>
Finish
Add console output
Run
Result
Summary:
1. The main function is lowercase, different from. net.
2. If eclipse does not have the compile button, it will compile the file after saving the file.