Java Environment Configuration

Source: Internet
Author: User

JDK Description:

JDK (Java Development Kit): Java Language Development Toolkit, which mainly contains the Java Runtime Environment (JRE and Java class Library) and Java tools

javac: Compiler, turn source program into bytecode file (. Class)jar: Package Tool to package related class files into a single file (. jar)Java: Running the compiled Java program (. Class)

JRE (Java Runtime Environment): Java Runtime Environment, mainly includes JVM (Java Virtual machine), Java Core Class library and supporting files

JVM (Java virtural machine): Java virtual machines, Java and platform-agnostic is mainly its compilation on the Java virtual machine, the Java virtual machine translated into a specific platform for machine instruction execution

When installing the JDK, you will usually be prompted to install the JRE, so that after installation you will find a JDK package and a JRE package in the Java folder, and a JRE package in the inside of the JDK, and the JRE package in the inner layer is identical to the function and composition of the package.

PATH, CLASSPATH, java_home configuration:

Path: The role is to specify the command search path, execute the command below the command line, such as Javac compile the Java program, it will go to the path specified by the paths variable to find out if the corresponding command program can be found.

Absolute path:

Value:*; C:/Program Files/java/jdk1.8.0_77/bin; With other paths * separated by English semicolon

Classpath: Specifies the search path for a class that has already been written, the Dt.jar and Tools.jar in the Lib subdirectory under the JDK installation directory need to be set to Classpath, and it is important to note that the current directory "." must also be added to the variable.

Absolute path:

Value:.; C:/Program Files/java/jdk1.6.0_21/lib/dt.jar; C:/Program Files/java/jdk1.6.0_21/lib/tools.jar

Java_home: It points to the JDK's installation directory, and software such as Eclipse/netbeans/tomcat finds and uses the installed JDK by searching for java_home variables. A relative path is produced by Java_home.

Java_home:c:/program files/java/jdk1.8.0_77

Path:*;%java_home%\bin;

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

Java Environment 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.