JDK environment variable configuration

Source: Internet
Author: User

The small Editor downloads the jdk1.6 version and explains how to install it,

My jdk installation directory is under this directory

Next we will configure the Environment Variables

 

   

Java_home

Classpath

You can refer to the configuration process of java_home and create a new system variable. However, the classpath variable name is classpath and the variable value is.;% JAVA_HOME % \ lib;% JAVA_HOME % \ lib \ tools. jar

(Add.Indicates the current path ).

Path

The path variable already exists in the system variable. to modify the path variable, you only need to select the path variable and click Edit. Add the following content to the variable value: % JAVA_HOME % \ bin; % JAVA_HOME % \ jre \ bin.

We recommend that you put the JDK bin path at the beginning of the original path. Because there is a java.exe/javaw.exe in % SystemRoot % \ system32, which is the JRE that comes with the Windows operating system,

If we install it on our own, we should not use the default JRE. We can install it on our own. If you put the JDK bin path at the beginning, it will be used first.


3. test whether the environment variable configuration is successful:

 


Enter the java-version command to view the installed JDK version. Enter the java command to view the help information of this command. Enter the javac command to view the help information of this command. If you see it as expected, the JDK is successfully installed.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.