Java Learning (iv): Configuration of JRE and JDK, and environment variables

Source: Internet
Author: User
Tags java se

The JDK (Java Development Kit) is the Java language Software Development Kit (SDK).
SE (J2SE), Standard Edition, is a version we typically use, starting with JDK 5.0 and renaming Java SE.
EE, Enterprise Edition, Business Edition, uses this JDK to develop the Java EE application, starting with JDK 5.0, and renaming it to the same.
ME (J2ME), Micro Edition, primarily for Java applications on mobile devices, embedded devices, starting with JDK 5.0, renamed Java ME.


The JRE is the abbreviation for Java Runtime Environment , and the Java Runtime Environment (including Java plug-in) is a sun product, including two parts: Java runtime Environment and Java plug-in. The Javaruntimeenvironment (JRE) is the Java platform on which applications can be run, tested, and transmitted. It includes the Java Virtual Machine (JVM), the Java Core Class library, and the supporting files. It does not contain development tools (JDK)-compilers, debuggers, and other tools. The JRE requires auxiliary software--java plug-in--to run applets in the browser.

Configuration of environment variables

1, java_home indicates JDK installation path, this path includes Lib,bin,jre folder (this variable is the best setting, because later run tomcat,eclipse and so on need to depend on this variable);

2,CLASSPATH variable. Sets the path to the Java Load Class library.

Variable values are filled in.; %java_home%\lib (Note that there is a point in the front that indicates the current path)

3. Path variable to enable the system to identify Java commands.

Enter%java_home%\bin;%java_home%\jre\bin at the end of the variable value;

A%java_home% is a reference to the Java_home specified previously, and the variable name is not case-sensitive.

CMD type command "Java-version", "Java", "Javac" several commands, appear screen, indicating that the environment variable configuration is successful.

Java Learning (iv): Configuration of JRE and JDK, and environment variables

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.