1. create system variable
2. edit the system path
note: ;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;
3. create classpath
note: .;%JAVA_HOME%\lib;%JAVA_HOME%\jre\lib;
java jdk environment variables
原文:http://www.cnblogs.com/rocky-fang/p/5193170.html