Java Fundamentals-Configuration of environment variables

Source: Internet
Author: User

In the Java development learning process, regardless of the stage, the environment variable configuration is must be mastered, know people will feel very simple, but as a beginner will often feel puzzled, below I would like to share the record if I have rushed through the first level of Java entry.

The first step, of course, is to install the Java JDK, you can download the appropriate version of the JDK on the official website, but because I have prepared the installation files on the USB flash drive, so it is directly installed jdk1.8. Java prompts will appear when the Java command is entered in the DOS command line window after the installation is complete.

The second step, I was in my own WIN10 professional version of the Computer configuration, click on My Computer, the right button to display the properties, computer system will appear basic information.

The third step, enter the advanced system settings, select the environment variable configuration can be

Fourth step, in the Environment Variable configuration window, you need to configure three environment variables, namely Java_home,class_path,path. Java_home path is the installation path of JDK like mine is, C:\Program files\java\jdk1.8.0_121, of course, because it is not java_home this environment variable needs to be new. The path and clas_path paths, in turn, are as follows:

Path=%java_home%\bin; C:\Program Files\java\jre1.8.0_121\bin
Classpath=.; %java_home%\lib;%java_home%\lib\tools.jar

Fifth step, complete the above environment variable configuration in the DOS command line window input, Javac can see the corresponding prompt message, indicating that the environment variable configuration is successful.

Java Fundamentals-Configuration of environment variables

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.