Java Development Environment Building

Source: Internet
Author: User

1. Download and install the JDK

2. Configure environment variables (Windows 10 as an example)

Open the System interface (WIN10,WIN8 shortcut key win+x and select [System],win7 Start Menu-Computer-Right-click-Properties]

      

Select [Advanced system Settings]

      

Select [Environment Variables]

      

New variable:

Variable name:java_hom

Variable Value: JDK installation path (default to C drive due to different Java version and personal installation path selection)

Variable action: Configure JDK installation path

      

New variable:

Variable name:CLASSPATH

Variable Value:

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

Variable action: Configure the location of the JDK command file

      

To edit a variable:

Variable name:PATH

Variable value: Add variable value%java_home%\bin and variable value%java_home%\jre\bin

That directly increases the value of the variable first.

%java_home%\bin;%java_home%\jre\bin;

  

Variable action: Configure the location of the class library file

Note: The value of the variable is used between the variable value; Separated

      

Win10 added a more defined variable editing interface, you can also click [Edit text], use the traditional variable editing interface

      

3. Testing

Win+r

Enter cmd and click OK to enter the command line window

Enter Java and return

      

Enter Javac and return

      

Conclusion: If there are usage introductions, the Java development environment is successfully built

Java Development Environment Building

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.