Reference URL: https://jingyan.baidu.com/article/f25ef2546e45e4482c1b82f0.html
Tools/Materials
Java Proper installation steps
- 1
Download the latest Java installation package to the official website and enter the top URL
- 2
You can download the latest Java installation package and choose your computer system, 32-bit or 64-bit. Then, after agreeing to the service, click Download
- 3
Click Run to install after download is complete
- 4
If you do not want to install to C drive by default, click Change Directory
- 5
The Java program is being downloaded and will be automatically unpacked after the download is complete.
- 6
Change the installation directory
- 7
installation process, installation complete
- 8
Installing the JDK will automatically help you look at the JRE's Oh ... If you install the JRE alone, the JDK will not be installed automatically. This is a note.
END
Java environment variable settings
Right-click My Computer--"Properties--" Advanced environment Configuration--"Environment variables
Create a new system variable called "java_home": The value is:D:\Program Files (x86) \java\jdk1.7.0_60(This is the installation directory, everyone changes according to their own directory)
Create a new classpath system variable. Variable value:.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar; ( preceded by a number and semicolon , meaning that all files in that directory or subdirectory are applied), or write directly .; %java_home%\lib; You can do it.
New path variable, variable value:%java_home%\bin;
Click OK, hold, open cmd, enter Java and Javac, and view the results. The result is a successful configuration of the Java environment
Java installation and environment variable settings