How do I configure Java environment variables? Java environment variable Settings tutorial

Source: Internet
Author: User

How do I set the Java environment variables? The Java language has cross-platform features, its compiled programs can run on a variety of operating system platforms, can achieve "write, run Everywhere" powerful function. But Java needs to manually configure environment variables, which is a big challenge for Java novices. Next, small compilation teaches everybody Java environment variable setting method.

Java environment variable settings required tools:

JDK 1.7 installation Package

Java environment variable setup steps:

To successfully configure Java environment variables, it is absolutely necessary to install the JDK before you can start configuration.

1. Install the JDK Wizard for related parameter settings. As shown in figure:

4. Choose the path to install, you can customize it, or you can default path. As shown in figure:

5. Installation is successful.

After the successful installation, the test is really successful installation, click the "Start"----"Run"----input "CMD", in the command prompt input "java-version" and press ENTER, the following figure appears, that is, the installation is successful. As shown in figure:

6. Start configuring Environment variables, right click on "My Computer"----"Properties"----"advanced"----"Environment variables", as shown in figure:

2. Select the optional features you want to install. The following figure:

3. The related features of the program are being installed. As shown in figure:

7. Select New System variable----Eject the new System Variable dialog box, enter Java_home in the Variable name text box, enter the installation path for the JDK in the Variable Value text box (that is, the folder path for step 5), and click OK. As shown in figure:

8. View the path variable in the System Variables option area, or if it does not, create a new path, or select the variable, click Edit, and add%java_home%bin;%java_home%jrebin at the start of the variable Value text box. or direct "%java_home%bin;", click OK button. As shown in figure:

9. View the CLASSPATH variable in the System Variables option area, or if it does not, create a new variable classpath, or select the variable, click the Edit button, and add at the start of the variable value text box.; %java_home%libdt.jar;%java_home%libtools.jar; ". As shown in figure:

10. Test environment variables are now configured successfully or not. Enter "JAVAC" in the DOS command Line window, and the output Help information is configured correctly. As shown in figure:

Small series reminder: In the "Variable value" edit remember not to miss the last ";" Symbol.

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.