environment variable configuration for JDK
Variable name: "java_home"
Variable value: "C:\Program files\java\jdk1.7.0_51"
Special Note: My jdk is installed in this location C:\Program files\java\jdk1.7.0_51 So just fill this out, your own jdk install in what position, just fill in what Oh!
Locate the Path selection Editor in the system variable:
At the end add "\;%java_home%\bin; 】
Special note: In the last add, do not put the default delete Oh! If deleted, your part of the program will not be able to run Oh!
Verify that the environment variable is configured successfully:
In " accessories " Find " run ", enter "cmd"
Re-enter Java
If you have the following interface instructions you have configured! Your computer can run Java programs.
The javac command is used to compile the Java source file into a class bytecode file, such as: Javac Helloworld.java.
After running the Javac command, a helloworld.class file appears if there is no error in compiling successfully.
Java commands can run a class bytecode file, such as: Java HelloWorld
Java Environment Building