java Getting Started Tutorial: Development Environment jdk build [Windows10] _ environment variable configuration

Java was developed by Sun Company in May 1995 launched the high-level programming language.

Java is a cross-platform language that can run on multiple platforms Windows, Linux, Mac OS, as well as many other versions of UNIX systems.

This article will give you on the JDK Java development environment to build, more exciting content so stay tuned!

 

Step One: Download JDK installation package

First, download the Java Development Kit JDK, Download: http://www.oracle.com/technetwork/java/javase/downloads/index.html

Click to download, as shown:

Consent agreement, and then click to download the Windows version

 

Step 2: Install JDK

JDK installation package after the download is complete, double-click to run, then click on the "Next" button

You can define JDK installation directory itself, I install directory is "D: \ Software \ Java", then click on the "Next" button

This, JDK installation has been completed. The same is true of the JRE installation, here ignored.

 

The third step: JDK environment variable configuration

Right-click the computer, and then click "Properties" option

Click "Advanced System Settings" option

Click the "Environment Variables" button

3 is provided in the system variable properties, respectively JAVA_HOME, PATH, CLASSPATH (case insensitive)

If a property already exists click Edit, or click New.

Variable is set to the following parameters:
variable name: the JAVA_HOME
variable value: D: \ Software \ Java \ jdk1.8.0_201
variable names: the CLASSPATH
variable values:;.% JAVA_HOME% \ lib \ dt.jar;% JAVA_HOME% \ lib \ tools. jar;
variable names: Path
variable value:% JAVA_HOME% \ bin;% JAVA_HOME% \ jre \ bin;

After configuration is complete and the "OK" button to click on all over again.

 

Step 4: Check whether the environment variables into effect / JDK version

Open CMD console, enter java -version, if the output java version configuration was successful. Otherwise, check the configuration is wrong. After confirmation or not? That restart my computer to try again.

time -- 1559816534 -- end

Guess you like

Origin www.cnblogs.com/java5/p/10986447.html