Java Development Environment Building

Source: Internet
Author: User
Tags windows x64 windows x86

Java Development environment Build download JDK

To build the Java development environment, first download the JDK (Java devlopment kit, Java SDK)

Official website http://www.oracle.com/technetwork/java/javase/downloads/index.html, then find and click on this download portal.

Then see the following table, select Accept License agreement, agree to the Oracle company agreement (do not agree not to download OH), and then click on the windows corresponding. exe file to start the download.

If you need a JDK version that distinguishes between 32-bit and 64-bit, 32-bit should choose the Windows x86 version, and 64-bit should choose the Windows x64 version.

(If you are not using a Windows system, select the appropriate installation package for your operating system to "~")

After downloading, open it, follow the installation of the boot step-by-step installation, the default installation location in the C drive, of course, you can choose other installation path, but be sure to remember the installation path!!

Setup is complete-the next step is to configure the environment variable.

Configuring Environment variables

For example, my JDK installation path is C:\Program Files (x86) \java\jdk-9.0.4

This path is used as an example below, and the reader is configured to swap the JDK paths appearing in the text for their JDK installation path!

Right click on "This Computer", click "Properties", select "Advanced system Settings" on the left, such as

Select Advanced, and then click Environment variables, as shown

In "System variables", you need to configure three variables, if the variable name already exists, edit and add, if not present, create a new one.

① variable name java_home variable value C:\Program Files (x86) \java\jdk-9.0.4

② variable name CLASSPATH variable value .; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar;

③ variable name Path variable value %java_home%\bin;%java_home%\jre\bin;

Remember to change the path to your own installation path, note that the value of the CLASSPATH variable values in front of a point, don't miss out ~

Note: The use of%java_home% in the WIN10 path may not be recognized, if there is a problem with the configuration, you can replace the%java_home% in path with the Java_home variable value

For example C:\Program Files (x86) \java\jdk-9.0.4\bin; C:\Program Files (x86) \java\jdk-9.0.4\jre\bin;

Detects if the environment is configured successfully

Press the shortcut key win + R

In the Run window, enter cmd, and then enter

Enter the command java-version in the new pop-up window and return it, you should be able to display the Java version (mine is 9.0.4) instead of the error, as

Input command Java or javac should be able to display a help document instead of an error

The Java development environment is configured successfully ~

Java Development Environment Building

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.