Java installation and environment variable configuration

Source: Internet
Author: User

Installation of Java and environment variable configuration

1. Download Java first and install it. : http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u3-download-1501626.html according to their own computer system to choose to download! such as 2, the installation of the time, it is best not to change the installation path, the default path has been point next! 3, after the installation is complete, the next step is to configure the Java environment variables. 4. Turn on the computer properties and click Advanced System settings (e.g.) 5. Select "Advanced"-"environment variable" (e.g.) 


 6. Click New (e.g.) 


7. Create a new variable named "Java_home", the value of the variable is:C:\Program files\java\jdk1.7.0_01(in your installation directory, confirm that there are bin and Lib,jre and other folders), click Confirm. 


8. Re-build a variable named "CLASSPATH", the value of the variable is:.; %java_home%\lib;%java_home%\lib\dt.jar;(do not miss the beginning of the small point) 


9, if the variable directory does not have the path of the variable, you also need to create a new variable named "path", the value of the variable:%java_home%\bin;%java_home%\jre\bin;If you already have path, just precede the value with a section of the path of the polygon, and at the end of it, separate, click OK. 


10. After they have been built, the following: 


11. After the environment variable is configured, the next step is to verify that the configuration is successful. Click "Run"--enter "cmd"--carriage return--enter "Javac"--carriage return if the effect appears, the configuration is successful! Conversely, it fails!!

At this point, the Java environment variable configuration is complete!! 

Java installation and environment variable configuration

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.