I novice + rookie one, if there is inaccurate or wrong place want you to point out, this is my first blog, may be very simple, but hope to help the novice, but also hope that the platform with the common progress and growth.
Every Java beginner needs to download and install the JDK (Java SDK) before development, configuring environment variables, which is the basis, which is the premise, which ensures that we can carry out the next learning development.
As for why to configure environment variables, it is simple to tell the operating system compiler to run the path and the generated classpath, so that the Java source program can be compiled and run. Maybe I said inaccurate unreasonable, we can go to Baidu, this is nothing.
may be easy for beginners to forget how to configure, below I will briefly illustrate:
(1) Find the computer system Properties "Environment variable" system variable new A variable named java_home system variable, the value of the variable is filled with your computer JDK installation path
(2) Create a new environment variable named CLASSPATH .
The value of the variable is filled in: .; %java_home%\lib;%java_home%\lib\tools.jar
(3) Locate the environment variable path,
Precede the value of its variable with: %java_home%\bin;%java_home%\jre\bin;
(4) Open the running Panel (shortcut key win R), open after the input cmd into the command window, the input Java and Javac have the corresponding content appears, indicating that the configuration is successful.
Java environment variable Configuration