Fool-style setup Java development environment come with me.
To the operating system with Win7. There are two ways.
The first type:
1. Download the JDK to complete the installation.
2. Right-click My Computer, select Properties, find advanced system settings on the left left click Open, locate the environment variable in the advanced options, open.
3. Locate the path variable in the system variable and add an English symbol at the back; , and then write the path to the JDK you installed (must be the path to the JDK, the JRE is not working), to the end of the bin.
4. Add a Classpath variable to the system variable and give it a value in English. , it's OK.
5. Run cmd in the Start menu, enter Javac, and if a lot of explanatory text appears, the setup is successful. If the display is: not an internal or external command, it is not a running program or a batch file. That proves that it's not set correctly, just one more time.
The second type:
1. Download the JDK to complete the installation.
2. Right-click My Computer, select Properties, find advanced system settings on the left left click Open, locate the environment variable in the advanced options, open.
3. Add a variable name called Java_home to the system variable, and the value of the variable writes the JDK path to the JDK.
4. Locate the path variable in the system variable and add an English symbol after the value of the variable. , and then enter:%java_home%\bin;%java_home%\jre\bin; 。
5. Add a Classpath variable to the system variable with the value of:.; %java_home%\lib; %java_home%\lib\tools.jar; Note that there is an English symbol in the front:. and an English symbol:; 。
6. Run cmd in the Start menu, enter Javac, and if a lot of explanatory text appears, the setup is successful. If the display is: not an internal or external command, it is not a running program or a batch file. That proves that it's not set correctly, just one more time.
Summary: The first is relatively simple, but can be used. After setting the JDK environment variable, you can use eclipse to write Java code.
How to set up the Java development environment