Java environment variables about

Source: Internet
Author: User

1, why to set classpath?
The location used to inform the JVM of the Java base Class library. Classpath tell the class loader where to find a third-party class library
You don't need to configure this variable since JDK1.5.

2. Why install two JRE (one in JDK, and one JRE in JDK sibling directory)
The JRE under the JDK is primarily for development, and a single JRE is used when the program is running
The JDK contains all the components for development, which naturally requires JRE-assisted development,
And the JRE is just the Java Runtime environment for executing. class files

Separate JRE with less server-side Java Virtual machine

  The JDK is intended for developers, and the JRE is intended for users
It is necessary to include the operating environment in the developer kit.
And developers as the first user of the program, install a complete set of independent operating environment seems to have no doubt!!!

Note: As a guess, the deadline is not verified when the article is written, correct or not to be verified

If you need to refer to someone else's developed class library and get a compiled. class file (not a. Java source file), then the JRE in the JDK folder will be used at compile time.

Executing the JAVAC command in the console when compiling the source file is performed inside the JDK, regardless of the external Jer

A separate JRE (JRE in a non-JDK folder) is used when executing the Java command Execution program in the console

If there is a different understanding welcome message!! Thank you

No reprint

Zhang Yan

2017-07-27

Java environment variables about

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.