[Java] environment variable settings in Windows 7

Source: Internet
Author: User

In Windows 7, configure JDK environment variable parameter settings:

1. Install JDK. You can customize the installation directory and other information during the installation process. For example, select D: \ Program Files (x86) \ Java \ jdk1.6.0 _ 25 as the installation directory.

2. After the installation is complete, right-click "my computer", click "properties", click "Advanced System settings", and click "environment variables ",


4. In "system variables", set three attributes: java_home, path, and classpath (Case Insensitive). if it already exists, click "edit". If it does not exist, click "new ":

(1). java_home indicates the JDK installation path, which is the path selected during installation.D: \ Program Files (x86) \ Java \ jdk1.6.0 _ 25


(2) Add % java_home % \ bin; % java_home % \ JRE \ bin under the path item. Note that the names are separated by semicolons. I have installed the Oracle database here, so before it.


(3) Add:.; % java_home % \ Lib \ DT. jar; % java_home % \ Lib \ tools. jar in the classpath item (Add. to indicate the current path ),


5. "Start"->; "run", type "cmd", and type the command "javac". The following screen is displayed, indicating that the environment variable is successfully configured.


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.