Java environment installation, java environment
1. Download jdk and eclipse
Jdk:
Version 1.8 http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Version 1.7 http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
Eclipse:
Http://www.eclipse.org/downloads/index.php
2. Install jdk and configure Environment Variables
Method: Computer → properties → advanced system settings → environment variables → add Environment Variables
| Variable name |
Variable value |
Description |
| JAVA_HOME |
C: \ Program Files (x86) \ Java \ jdk1.8.0 _ 73 |
Jdk installation directory |
| PATH |
% JAVA_HOME % \ bin |
Java.exe directory |
| CLASS_PATH |
% JAVA_HOME % \ lib |
Directory where tools. jar is located |
3. Check whether jdk is successfully installed.
Method: Run cmd to enter the console.
Enter java-version. The result is as follows:
Enter java and the result is as follows. The preceding result indicates that jdk has been successfully installed. Install eclipsedecompress the downloaded eclipseinstallation package in 4、. double-click eclipse.exe during installation and installation. The cause is that the number of digits of eclipse and JDK is different. solution: view eclipse. INI file, for example, my eclipse. the content of the INI file is as follows. You can see that the required jdk version is 1.7, so replace jdk with 1.7.