Win7 Configuring Java Environment variables

Source: Internet
Author: User

Http://jingyan.baidu.com/article/9f63fb91d87fb0c8400f0e93.html

  1. Install the JDK, download it from the Oracel official website, or go to the link via search. Install after download is complete.

  2. Install the JDK, and note change the installation directory.

  3. After installation, start configuring environment variables, right click on My Computer, click Properties

  4. In the dialog box that appears, select Advanced System settings

  5. In the dialog box that appears, select the environment variable

  6. Create a new variable name named "Classpath" with the variable value ".; %java_home%\lib;%java_home%\lib\tools.jar "(note is the content in" ") copy directly.

  7. Create a new variable name named "Java_home", the value of which is the directory where the JDK was previously installed, for example, "E:\Program files\java\jdk1.7.0_40"

  8. Add ";%java_home%\bin;%java_home%\jre\bin" to the variable value of the existing system variable "path" (Note that each variable value is separated by ";", the semicolon at the beginning of the variable value is the function) since this configuration is complete.

  9. The following test is configured successfully, run the cmd command, enter the "java" Command in the dialog box that appears, and if the following results appear, the configuration is successful.

  10. 10

    At this point, you can write in Notepad, and then call the Java command to compile, run the Java program.

Win7 Configuring Java Environment variables

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.