The Java language is strictly case sensitive.
Don't write the words wrong.
Extended name problem
Illegal characters
Bracket matching problem
Configuring Environment Variables program execution requires the use of external commands javac need to use the Javac command in any Pan Fu
-
Download the installation first JDK installation package, the installation process attention to the installation of other disks, do not install to the C drive just fine.
-  
Open My Computer--Properties--advanced--environment variables:
-  
New system variable java_home and classpath
variable name: java_home
Variable value: \ n Program files\java\jdk1.7.0
Variable name: classpath
Variable value:.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar;
The file directory where the variable value is for your own installation of the JDK should be noted here.
-  
Select the environment variable named "path" in system variables, double-click the variable to place the absolute path of the bin directory in the JDK installation path, Add to the value of the path variable, separating it with the semicolon of the half-width and the existing path.
variable name: path
Variable value:%java_home%\bin;%java_home%\jre\bin;
This is the Java environment configuration, after the configuration is complete, start eclipse directly, it will automatically complete the configuration of the Java environment
-  
The configuration of the test environment variable is now successful or not. Enter "JAVAC" in the DOS command line window and the output Help information is configured correctly.
-
The difference between path and class path
Path environment variable cm that records an executable file, such as. EXE file, to the executable file now the current path to find, if not found to go to the PATH environment variable to find,
The CLASSPATH environment variable contains the directory where the Java class's running files are located
Java Note 1