Java Development environment variable configuration

Source: Internet
Author: User
Tags java se

Masters are from the rookie grew up, to learn Java first to configure the Java development environment.

    1. Download the JDK (Java SE development Kit), which can be downloaded from the Oracle website;

    2. Install the JDK, and note the custom installation directory;

    3. To start configuring environment variables, open Control Panel (right-bottom left-hand corner of the win key), view mode for large Icons >> system >> (left Control Panel Home) advanced system Settings >> advanced >> environment variables;

    4. New java_home environment variable in the Environment Variables dialog box that opens, click the New (W) ... button. The new System Variable dialog box pops up. In the dialog box, add Java_home in the variable name:, add the installation path to the JAVA JDK file in the variable value:, and click OK. such as: C:\Program files\java\jdk1.8.0_74

    5. Edit the path system variable under system variable (S) to find the variable named "Path" of the system variable. Double-click or select the Path system variable to open the Edit System Variable dialog box. Add the bin path to the Java JDK at the beginning or end of the variable value (V), and append the semicolon ";" to the end of the path, and click OK. such as: C:\Program Files\java\jdk1.8.0_74\bin

    6. Verify: (1), press Win+r to open the Run dialog box, enter the command "CMD", open the "Command Prompt" window. (2), enter the command at the command prompt: Java, javac, java-version, view its return value. If no internal or external command is present, it is not a program or batch file that can be run. "Or if there is a (empty) return value, the installation succeeds.

1. First, open the URL: http://www.oracle.com/technetwork/java/javase/downloads/index.html, open the following page



2. Then click Download (Java Platform (JDK) 8u73/8u74) under Java SE downloads to go to the next page, as


3.

Click on the Java SE Development Kit 8u74 (note agreement, check the Accept License agreement) Under the Jdk-8u74-windows-x64.exe download jdk-8u121, and then install, after the installation is complete, configure the environment variables (note that the installation process will appear two times to select the installation, the first is to install the JDK, with the default C:\Program files\ Java\jdk1.8.0_74, the second time is to install the JRE, also with the default C:\Program files\java\jre1.8.0_74, so that the JDK and JRE are in the same Java folder.



4. The next step is to configure the JDK environment variable (WIN10, for example).
Click "This PC"-"right"-"Properties", click "Advanced System Settings" on the left, pop up the "System Properties" panel, click "Environment Variables" in the panel.

5.A Create a new variable in the user environment variable java_home, set the variable value C:\Program files\java\jdk1.8.0_74

B. Create a new path in the user environment variable, set the value of the variable%java_home%\bin;%java_home%\jre\bin

C. Create a new classpath, set the value of the variable.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar Note the previous. Represents the current directory. Then click on the "OK" button.

6. Don't forget to click the final "OK" button when you are done.

7. Set up the system environment variables to test the success of it, run "cmd", open the CMD Control Panel and then enter Javac, appear as if the configuration is successful

Java Development environment variable configuration

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.