Java environment variable Configuration

Source: Internet
Author: User

Java Operating Environment:
Jre:java operating Environment JRE = Java Virtual machine + core class library (Files run by secondary Java virtual machines)

Jdk:java Development Toolset JDK = JRE + Java Development tools

The path to installing the JDK should be noted: it cannot have a Chinese path or a space.

Introduction to the JDK directory
Bin: The Java development tool is stored.

Java.exe starts the Java virtual machine to interpret and execute the specified class file.

Javac.exe start the Java compiler to compile the specified Java source files


Db:jdk7 comes with a lightweight database named Derby

Include: the interface file that holds the calling system resource.

Jre:java Operating Environment

LIB: Core class Library

Src.zip:java Source Code

Write the file name of an executable in the console in the following principle:

Write an executable file name in the console, then the system will first in the console current path to search for the existence of the file, if you can find the specified file, then execute the file, if the file is not found, then the system will be based on the path information stored in the environment variable to search whether there is a prepared file , if it can be found, then execute the file.


Configuring the PATH environment variable
Copy the path where the Javac is located to the PATH environment variable. That is to say:.. Java Development tools under the/jdk*.*.*/bin

To avoid frequent changes to the PATH environment variable
Workaround: Create a new environment variable save the part of the JDK installation directory that will change, and then reference the path in the PATH environment variable + unchanged paths

NEW: Java_home JAVA installation path
Path:%java_home%\bin;


Configure temporary environment variable: Temporary environment variable is only for the current control window function, once the window is closed, the configuration of temporary environment variable information will disappear.
Set command usage:
Set to view all environment variable information
The name of the set environment variable to view the specified environment variable information
Set environment variable name = path information Setting environment variable information
Set environment variable Name sub = empty environment variable information set

Set Path=e:\jdk5.0\bin Java development tools using jdk5.0

Set Path= e:\aa\;%path% Add a new path under the original PATH environment variable

Note: After you see the environment variable information set by the SET command, it is the temporary environment variable information.

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