Java Environment----JDK Development environment Construction and environment variable configuration

Source: Internet
Author: User

1. What is a JDK?

The JDK is the abbreviation for Java Development Kit, which means a toolkit developed by Java programs.

JDK version, a total of three kinds, the Standard Edition (J2SE), Enterprise Edition (Java EE), mobile device Edition (J2ME).

Ordinary users do not need to install the JDK to run Java programs, but only install the JRE (Java Runtime Environment). The program developer must install the JDK to compile and debug the program.

JDK Component content:

2.JDK installation and environment variable configuration in a few steps?

    • Installing the JDK

Download site: http://www.oracle.com/

    • Environment variable Configuration (3 environment variable settings)

Click Computer-Properties-Advanced system settings, click Environment Variables. Click New under the System Variables column to create a new system environment variable.

(1) New variable name "java_home", variable Value "C:\Java\jdk1.8.0_05" (that is, the JDK installation path)
(2) Edit, variable name "Path", at the end of the value of the original variable plus "; %java_home%\bin;%java_home%\jre\bin "
(3) New variable name "CLASSPATH", Variable Value ".; %java_home%\lib;%java_home%\lib\dt.jar;%java_home%\lib\tools.jar "

    • Confirm that the environment is configured correctly

Enter the Java,javac,java-version command in the console to verify that the version number and compiler information for the JDK are present.

3. Example explanation

A diagram explaining the compilation and execution of Java programs.

4. Maintenance such as uninstallation

JDK update once the file content is deleted, it is difficult to uninstall, even if the 360 and professional uninstall JDK tools are difficult to clean up. The query found that the download using Windows cleaner can be completely erased.

Java Environment----JDK Development environment Construction and 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.