Building a Java development environment under Windows requires downloading two tools, JDK and Eclipse
JDK: HTTP://PAN.BAIDU.COM/S/1DDLI0PJ
Eclipse's: Http://pan.baidu.com/s/1eQcSVuy
To install the JDK:
Click Jdk-7u25-windows-i586.exe
When you click the JDK, the JDK Installation Wizard opens
Click Next
Click Next
Indicates that the JDK is being installed
Click Next
Click Close
Note: The JDK is now installed
To configure environment variables:
Select the computer, and right-click
Select Properties
Select Advanced System Settings
Select Environment variables
Select Path
Click Edit
Click Edit to pop up the dialog box
Add the installation path of the JDK to the environment variable
Click OK
Click OK
Start eclipse
Select Eclipse.exe
Set the save path for the Java project, the path I set is E:\game\workspace
Click OK
Click Finish
After completing the previous steps, you enter Eclipse.
Create a Java Project
Select File
Select New, and then select Java Project
In Project name, enter the title of the project and click Finish
Select the src file under the created project directory and right-click
Select New, and then select Class
Enter the class name in name, note that the class name must be the same as the project name, and then click Finish
Write the following code in the workspace
public class Helloworld{public static void Main (string[] args) {System.out.println ("This is my first Java program!");}}
Effects after writing code in the workspace
Compiled Java appears
Execution results of the program
Build a Java development environment under Windows