Beginner Java To do some summary, there is said the wrong place to hope that you have a lot of advice.
If you can bring the same confused classmates to help, is very open sen one thing .
Just learn Java will certainly encounter these three environment variables set, often know it is not know why,
Follow the instructions to finish and do not know why to do so, here simple to do some summary instructions.
?
First, what is an environment variable
an environment variable is a parameter that is used in the operating system to specify the operating system environment .
Is the variable that we can set in the operating system. As to what these variables do, it is related to the specific variable name.
So, let's introduce the three environment variables we're going to set.
Java_home: This is an environment variable that we have added to our own definition
The installation path (such as C:\Program files\java\jdk1.7.0_79) that is set to JDK, including Lib,bin,jre folders under this path
The goal is that when we need the JAVA path, you can write%java_home%, without having to enter a long list of addresses.
Path: is the operating system's own, running the default path of a program that does not have a specified location.
Append ";%java_home%\bin" after the existing path. %java_home% is a reference to the Java_home variable specified earlier.
When we execute javac Helloworld.java , we do not need to specify the location of the instruction Javac,
Because the operating system will automatically go to the " C:\Program files\java\jdk1.7.0_79\bin" defined in path to find Javac.exe and then to execute.
Classpath:java Run Environment Load class path, only class in CLASSPATH, can be recognized and loaded, set to.; %java_home%\lib (Note the preceding dot (.), the dot indicates the current path).
Not to be continued.
Jane says the JAVA environment variable setting path,classpath,java_home