One, Windows environment variables
environment variable settings: 1. My Computer--right-click Properties-Advanced System variables-environment variables
2. Under System variables, create a new variable name: Java_home
Variable Value: Storage disk (example D) D:\Java\jdk1.7.0_60_x64
New variable name after OK: CLASSPATH
variable values:.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar; (this variable value takes note of all punctuation marks)
3. Select the environment variable named "path" in system variables, double-click the variable name: path
Variable value:%java_home%\bin;%java_home%\jre\bin; (This paragraph does not leak any letters and symbols, placed in the original variable value of the most front)
The above is the Java environment configuration, the configuration is completed directly after the eclipse, automatically complete the configuration of the Java environment.
Second, Java compile run--java compile command--run command bytecode file class name. java--byte-code file. CLASS
Console example: D:\>javac Xxx.java
D:\>java XXX
Beginner Java with mind-Essentials précis-writers