Configure java environment variables under win10 64-bit system

1. Install JDK
Install jdk-8u131-windows-x64 under win10 64-bit system, select the default installation path [remember the path] to complete the installation.

Remarks: How to check the operating system and the number of OS of the machine?

--Method 1: Right click on "My Computer" - "Properties -" to view the windows version and system digits

   2. Configure JDK environment variables

Path: Right click on "My Computer"-"Properties-"Search for "Environment Variables" in the search bar-"Click to edit system environment variables (as shown in Figure 1)-"Advanced-"Environment Variables (as shown in Figure 2):

 

 

2.1 JAVA_HOME Create a new JAVA_HOME environment variable under "System Variables", capitalize it, find the path where you installed the JDK, and copy it [C:\Program Files\Java\jdk1.8.0_131], as shown in the figure:

 

Need to pay attention: the path of the configuration

 

2.2 CLASSPATH Under "System Variables", create a new one: CLASSPATH=%JAVA_HOME%/lib/dt.jar;%JAVA_HOME%/lib/tools.jar

 

2.3 PATH

Select the PATH variable, click [Edit], add %JAVA_HOME%/bin and %JAVA_HOME%/jre/bin, and click [OK] to complete the configuration. As shown below:

 

2.4 Verify environment variable configuration

Open the CMD command line window

Enter java –version in the command line window, and the content shown in the figure below appears, indicating that the environment variable configuration is successful.

 

Guess you like

Origin blog.csdn.net/m0_64351096/article/details/128008550