JDK Configuration for Java

Source: Internet
Author: User

About the installation of JDK and the configuration of environment variables;

First, download the JDK (to Baidu to find the JDK version you need), and then install it (the installation process is basically the next step until the installation is complete) and remember the installation path of the JDK, after the installation in the Command window to enter the command java-version can appear version information proof that the installation is correct.

Second, start configuring environment variables below:

1) Right-click "My Computer"---"Properties"-----"advanced"---"Environment variables";

          2)   Select "New system Variable"--pop up the "New System Variable" dialog box, enter "Java_home" in the "Variable name" text box, in the "Variable Value" TextBox               Enter the installation path for the JDK (for example: C:\Program Files (x86) \java\jdk1.7.0_40\bin;), click the OK button;

          3)   View the path variable in the system variables options area, if it does not exist, create a new variable path, otherwise select the variable, click Edit                   The start position of the Variable Value text box is added "%java_home%\bin;%java_home%\jre\bin;"       or

         4)   View the classpath variable in the system Variables options area, or create a new variable classpath if it does not exist, or select the variable,                 Click Edit button to add "%java_home%\lib;%java_home%\lib\tools.jar;" At the beginning of the Variable Value text box.

         5)   Now test whether the environment variable is configured successfully or not. Enter "JAVAC" in the DOS command line window and the output Help information is configured correctly.

650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>

650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>

650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>


This article is from the "flyfish" blog, make sure to keep this source http://9381188.blog.51cto.com/9371188/1706236

JDK Configuration for Java

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.