Win7 How to configure the Java environment variables, run the environment

Source: Internet
Author: User

Run eclipse directly and pop up the error prompt.

1 Make sure you have the JDK installed and the following folder example (jdk1.x.x depends on the JDK version you installed)

2 system, advanced system Setup, advanced, environment variable create a new java_home, the variable value is the installation path of your JDK (e.g. C:\Program files\java\jdk1.7.0)

3 Create a new system variable Pathwith a variable value of %java_home%\bin;%java_home%\jre\bin;

4 Create a new CLASSPATH, the value of the variable is .; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar(All my red stuff is, notice there.;)

5 finally enter Javac in the cmd command, the right window appears, indicating that the environment variable is configured successfully

6 Eclipse runs successfully

Win7 How to configure the Java environment variables, run the environment

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.