Java environment variable settings

Source: Internet
Author: User

Downloaded the win7 64-bit Java installation package from the official web, as shown in:

After the installation of the path:

Now it's time to start configuring environment variables:

First step: Create a new java_home, and fill in the installation path for the Java JDK as shown in:

The second step is to create the classpath, which tells the JDK to look up the current directory's class file when searching for class, variable values:.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar, pay attention to the preceding points.

The third step, set path, this is the system has a variable name, add ;%java_home%\bin;

OK, to this end, next test, open cmd, enter java,java-version, javac three command, if the following information appears, indicating that the setting is successful.

Java environment variable settings

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.