Build a Java development environment under Windows

Source: Internet
Author: User

1 Installing the JDK (Java Development Kit)

Install the JDK and JRE in a unified root directory, such as the develop directory, after the installation is complete, verify the installation is successful, in the DOS system to switch files to the bin directory, run Java or javac, the correct operation is installed successfully.

2 Configuring Java Environment variables

Computer (right-click Property)-Advanced system Settings-advanced-"Environment variables-" System variables

2-1) configuration Java_home

New Java_home, Value for JDK path (for example: D:\JavaDevelop\java1.7\jdk1.7.0_72)

2-2) Configure path

Found in system variables , at the top of Merit:%java_home%\bin;%java_home%\jre\bin;

2-3) configuration Classpath

To create a new classpath, the value is:

.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar;

3 detection is configured successfully

Check that the environment variable is already configured successfully: in console input: java-version

Build a Java development environment under Windows

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.