Configuration of environment variables in win7 Java ~~~

Source: Internet
Author: User

1. download Java

Official Address: http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u26-download-400750.html

Ii. install Java

We recommend that you keep clicking Next during the installation process, because there may be plug-ins or advertisements, and you can also set environment variables in the future.

3. Set Environment Variables

The environment variable settings for win7 are similar to those for XP. Right-click computer> Properties> advanced system settings and choose advanced> environment variable from system properties]


The default Java installation path is c: \ Program Files \ Java \ jdk1.6.0 _ 26


Set the environment variable to be the same as that of XP.

Add the java_home and classpath variables in the [system variables] and edit the path

Java_home variable value: C: \ Program Files \ Java \ jdk1.6.0 _ 26

The classpath variable value is .; c: \ Program Files \ Java \ jdk1.6.0 _ 26 \ Lib \ DT. jar, c: \ Program Files \ Java \ jdk1.6.0 _ 26 \ Lib \ tools. jar (Pay attention to the first two punctuation marks..;Do not miss out)

Add the following two paths at the end of the variable value of path; C: \ Program Files \ Java \ jdk1.6.0 _ 26 \ bin; C: \ Program Files \ Java \ jdk1.6.0 _ 26 \ JRE \ bin(Note that there is a symbol above;)



After the environment variables are set, they are basically OK!

Check whether Java is installed. You only need to input the javac, Java-version, and javac commands in the command prompt to check whether the following results are correct.

To install Java in XP, refer: Http://blog.sina.com.cn/s/blog_67493dad0100tah5.html

Java is installed on 32-bit 64-bit win7, and Java environment variable settings in win7

 

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.