Java Learning Note 1--java Environment building

Source: Internet
Author: User

1, Java installation path is best without Chinese and space, because if there is Chinese or space, in the subsequent compilation process is prone to inexplicable errors


2, installation of the Java process, the installation of the JDK after the installation of the JRE interface, at this time do not continue to install the direct exit can be, because the JDK contains the JRE, even if the JRE is installed in the JDK is the same as the JRE


3, the Java environment to build the reason, is to facilitate the program compile time can be directly in the DOS command input Java-related commands can be called directly, and do not need to do every time the Java command in the directory, because when you enter this command, Windows will look for two times, Look for the first time in the directory you entered, and one at a time in the system environment path, so you need to configure the Java command directory into path


4, the Java installation directory is actually the decompression process, belongs to the green software, can be directly copied to use, the installation process to write to the registry part of the only detection update


5. DOS Command explanation:

>C: Enter local disk C, toggle drive letter
>CD Java into the C\java directory
>CD java* into C\java ... In the directory, the part that does not have an * number must be unique
>dir output The list of files in this directory
>CD. Return to previous directory

6. Java Configuration Tips--dynamic configuration
Add the Environment variables:
Java_home D:\Java\jdk1.8.0_20
The path is preceded by a%java_homen%\bin;

7. Temporary configuration of Java environment variables
When you change an environment variable in a DOC window, the environment variable is inherited in and only in this window, setting the environment variable as set Path=d:\java\jdk1.8.0_20\bin
If you just temporarily add Java environment variables on the original path basis, you can use dynamic configuration: Set path=d:\java\jdk1.8.0_20\bin;%path%
There is a very special case:
If a new window pops up in this window by entering the Start command, all properties of this window will be inherited, including environment variables
If you open a new Doc window another way, the properties of this window will not be inherited

This lesson gains:
1, understand the nature of Java installation
2. Figure out the principle and method of configuring environment variable
3, understand the basic Doc command


---------21:20 2014/9/20

Java Learning Note 1--java Environment building

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.