First step: Download Java JDK
- 1
Login Official website Download Genuine JDK
- 2
Click on "SDK Download" to access Java JDK download page
indicate: Java JDK and Java JRE differences
The Java JDK is Java development Kit. Simply put, the JDK is a developer-oriented SDK that provides a Java development environment and a running environment. Java Runtime enviroment refers to the Java Runtime Environment, which is intended for users of Java programs, not developers.
- 3
Choose the Java JDK version that's right for you (choose Java JDK8 here) and click on the download page
indicate: Java JDK is not a version of the higher the better, according to their own situation, such as computer configuration, if not understand, you can see the "JDK DOWNLOAD" button to the left of the "installation Instructions" description of the document "System Requirements "section.
- 4
Download Java JDK
Steps:
1. Click "Accept License Agreement" to agree to the license
2. Choose whether to download "Windows x86"-for Windows 32-bit machines or "Windows x64"-for Windows 64-bit machines depending on your computer's situation
3. Click the download link on the left to download
END
Installing the Java JDK
- 1
Double-click Java JDK installation package "jdk-8u25-windows-x64"
- 2
Click on the "Next" button
- 3
After selecting the features you want to install, click on the "Next" button
- 4
Wait for installation to finish
- 5
End of installation
- 6
Verify that the installation is successful
Steps:
1. Open command line tool (CMD)
2. Run the command "Java-version"
3. The command line returns Java version information for installation success
END
Step Three: Configure Java environment variables
Open the Windows Environment Variables window
Steps:
1. Right-click on "My Computer" to "Properties"
2. Click "Advanced property Settings"
3. Click on "Environment variables"
4. Open the Environment Variable Settings window
new system environment variable "Java_home"
Set the Java_home value to the JDK installation directory, such as: C:\Program files\java\jdk1.8.0_25
Java_home:c:\program files\java\jdk1.8.0_25
New system environment variable Classpath
Set the Classpath value to:./;%java_home%/lib/tools.jar;%java_home%/lib/dt.jar
Classpath:./;%java_home%/lib/tools.jar;%java_home%/lib/dt.jar(note: The dot number indicates the current directory, cannot be omitted)
Update system environment variable path
Will " ;%java_home%/bin; " (Note: The semicolon here cannot be omitted) and is added to the front of the path. Then click Save
- 5
If you open eclipse error, please restart your computer, you can open it normally
Setup is complete and start enjoying the Java programming fun!
Enjoy your Java coding!
Java SDK download, installation, and environment variable settings under Windows 7