Setting environment variables under "Java" Windows7

Source: Internet
Author: User

Configure the JDK environment variable parameter settings under Windows 7:

1. Install the JDK, the installation process can define the installation folder and other information, such as we choose the installation folder: D:\Program Files (x86) \java\jdk1.6.0_25

2. Once the installation is complete, right click on "My Computer", click "Properties" , click "Advanced System Settings", click "Environment Variables ",


4. In "System Variables", set 3 properties, Java_home,path,classpath (uppercase and lowercase), if it already exists then click "Edit", do not exist then click "New":

(1). Java_home indicates the installation of the JDK path, which is the path selected at the time of installation D:\Program Files (x86) \java\jdk1.6.0_25


(2) Join under Path entry?:%java_home%\bin; %java_home%\jre\bin, note that the previous semicolon was separated, and I installed the Oracle database here, so I put it before it.


(3) in Classpath to join?:.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar (to Add. Indicates the current path),


5. "Start"->; " Execute, type "cmd", type the command "Javac", and the following screen shows that the environment variable is configured successfully.


"Java" Windows7 setting environment variables

Related Article

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.