Configuring Environment variables: Path,classpath
1, Path, you can execute "javac.exe" anywhere.
"Computer" right "properties"--"Advanced" tab "Environment variable"-system variable "new", Variable name input "Java_home", variable value entered JDK installation directory-"OK".
Select the system variable "Path" "edit"--the variable value before entering "%java_home%\bin;"--"OK".
2. Classpath, you can execute the ". Class" file in the specified directory anywhere.
System variable "new", Variable name input "classpath", Variable Value input ". Class" File storage Directory--"OK"--"OK"-"OK"-Close the Computer "Properties" form.
3. Verify that the configuration is successful.
Copy the ". Java" file to the specified storage ". Class" folder.
Start the console, execute the "javac.exe" compile file directly under this directory, successfully generate the class file "Fin.class", the path configuration is successful.
Enter the ". Class" Storage location of the drive letter, directly execute ". Class" file, successfully output "HelloWorld", classpath configuration is successful.
Older Dick Silk Self-study note--java 0 basics to rookie--003