How to set up the Java development environment

Source: Internet
Author: User

Fool-style setup Java development environment come with me.

To the operating system with Win7. There are two ways.

The first type:

1. Download the JDK to complete the installation.

2. Right-click My Computer, select Properties, find advanced system settings on the left left click Open, locate the environment variable in the advanced options, open.

3. Locate the path variable in the system variable and add an English symbol at the back; , and then write the path to the JDK you installed (must be the path to the JDK, the JRE is not working), to the end of the bin.

4. Add a Classpath variable to the system variable and give it a value in English. , it's OK.

5. Run cmd in the Start menu, enter Javac, and if a lot of explanatory text appears, the setup is successful. If the display is: not an internal or external command, it is not a running program or a batch file. That proves that it's not set correctly, just one more time.

The second type:

1. Download the JDK to complete the installation.

2. Right-click My Computer, select Properties, find advanced system settings on the left left click Open, locate the environment variable in the advanced options, open.

3. Add a variable name called Java_home to the system variable, and the value of the variable writes the JDK path to the JDK.

4. Locate the path variable in the system variable and add an English symbol after the value of the variable.    , and then enter:%java_home%\bin;%java_home%\jre\bin; 。

5. Add a Classpath variable to the system variable with the value of:.; %java_home%\lib;      %java_home%\lib\tools.jar;    Note that there is an English symbol in the front:.    and an English symbol:; 。

6. Run cmd in the Start menu, enter Javac, and if a lot of explanatory text appears, the setup is successful. If the display is: not an internal or external command, it is not a running program or a batch file. That proves that it's not set correctly, just one more time.

Summary: The first is relatively simple, but can be used. After setting the JDK environment variable, you can use eclipse to write Java code.

How to set up the Java development environment

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.