jdk installation and environment configuration

jdk installation and environment configuration

Tip: java runtime environment configuration


jdk installation steps

1. Download jdk
first download a jdk, you can go to the following address to download
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
according to the system to select the corresponding installation file, 64-bit The system installs 64-bit jdk, 32-bit installs 32-bit jdk

2. Install jdk and
keep clicking the next step. Do not change the installation address or remember to change the installation address. The
Insert picture description heredefault path of Insert picture description herethe directory is the directory I modified.
Insert picture description here

3. Configure the jdk environment
1 Right click this computer
2 Click Properties
3 Click Advanced System Settings
4 Click Advanced
5 Click Environment Variable Configuration
6 Click System Variables
(1) Configuration variable JAVA_HOME, the value is jdk path,
Insert picture description here

(2) The path path is the address copy of the bin after jdk
Insert picture description here

(3) Classpath environment configuration
Insert picture description here


**last step**

Verify that the jdk is installed successfully
1 Open the cmd command and
enter the java command
Insert picture description here

2 enter the javac command
Insert picture description here

, 3 enter the java-version commandInsert picture description here

Guess you like

Origin blog.csdn.net/s001125/article/details/109728079