The JRE : runtime environment (included JVM (Java Virtual Machine) - Java virtual machine and core class libraries)
The JDK : JAVA language Software Development Kit (Java Development Kit)
Dos common command line command:
dir: lists files and files in the current directory folder
md: Create a directory
rd: delete the directory
cd: Enter the specified directory
cd ..: return to the parent directory
cd \: return to the root directory
del: delete files
exit: exit the dos command line
Configuration environment variable:
-
After installing the computer environment variables JDK configuration properties → → → → Advanced Settings Advanced System Environment Variables
-
→ New system variable JAVA_HOME variable.
Fill in the variable value of jdk installation directory (I was E: \ Java \ jdk1.7.0)
-
System variables Path variable → Edit → Looking
In the last input value of the variable% JAVA_HOME% \ bin;% JAVA_HOME% \ jre \ bin;
(Note that the original value of the variable Path end there; number, if not, the first input; number enter the code above)
-
New system variable CLASSPATH variable →
Fill in the value of the variable;.% JAVA_HOME% \ lib;% JAVA_HOME% \ lib \ tools.jar (Note that the preceding bit)
System variable configuration is completed
-
Verify the configuration is successful run cmd enter java -version (space between java and -version)
If the version information is displayed as shown in FIG successfully install and configure.