Windows
JAVA_HOME:
C:\Program Files\Java\jdk1.8.0_66
PATH:
%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;
CLASSPATH:
.;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar
Unix