This is what I use to configure Java environment variables.

Source: Internet
Author: User

For users using command lines, you need to configure environment variables. This step is not required for users using eclipse or JBuilder!
1. Right-click my computer and select Properties
 
2. Select [advanced] and then select the [environment variable] below.
 
3. In the system variables at the bottom, find the java_home variable. If no, click [new].

In the displayed dialog box, write the variable name java_home. In the variable value, enter c: \ Program Files \ Java \ jdk1.6.0 _ 04.
 
4. click [OK] to find the path environment variable, [edit], and add c: \ Program Files \ Java \ jdk1.6.0 _ 04 \ bin at the end. Remember, don't forget the semicolon at the beginning
 
5. Click [OK] To Find The classpath environment variable. If not, click [new] And enter classpath in the variable name,

Enter c: \ Program Files \ Java \ jdk1.6.0 _ 04 \ Lib \ DT in the variable value. jar; C: \ Program Files \ Java \ jdk1.6.0 _ 04 \ Lib \ tools. jar ;. the last point ". "Be sure to write
 
6. Click [OK].

 

 

@@@

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.