1. Download: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html My computer is 64-bit, so the downloaded version is jdk-8u121-windows-x64.exe 2. Installation: I chose the default installation, but you can also customize the installation path. After installing JDK, you need to install JRE. It is recommended that the two JDK and JRE installation paths are created in parallel (the default installation is created in parallel, so you can ignore this sentence), as shown in the following figure. 3. Configure environment variables: 1. Open the environment variable configuration. Computer → Properties → Advanced System Settings → Advanced → Environment Variables, configure in System Variables. 2. Configure JAVA_HOME. Create a new variable, name it JAVA_HOME, set the variable value to jdk path. My path is C:\Program Files\Java\jdk1.8.0_121. Save. 3. Configure CLASSPATH. Create a new variable, name it CLASSPATH, and set its value to .;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar (there is a dot before the first semicolon). 4. Configure Path. Open the Path variable and add %JAVA_HOME%\bin;%JAVA_HOME%\jre\bin to the beginning of the variable value; 4. Verification: Run cmd and enter java -version. If the java version is displayed, it is successful. Summarize The above is the tutorial illustration of installing JDK8 under Windows system introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! You may also be interested in:
|
<<: Vant+postcss-pxtorem implements browser adaptation function
>>: MySQL initialization password operation under Mac
Table of contents Transaction Isolation Level Wha...
When it comes to remote desktop connection to Lin...
Install Nginx on Docker Nginx is a high-performan...
Recently, I need to implement a cascading selecti...
As components become more detailed, you will enco...
1. For comparison of date size, the date format p...
This article shares the mysql5.6.24 automatic ins...
This article shares the specific code of JS to ac...
Table of contents Problem description: Installati...
When applying docker containers, we often mount t...
Toy Story 3 Online Marketing Website Zen Mobile I...
This article collects the fonts used in the logos...
Table of contents 1. Basics 2. Nodes, trees, and ...
Description of port availability detection when p...
Table of contents Preface What situations can cau...