in windows
set up path variable
user path variable or system path variable
- JAVA_HOME = <path to jdk>
JAVA_HOME = D:\Program Files\Java\jdk1.6.0_19
- PATH = %JAVA_HOME%\bin
to check if set up successfully
java -version
in windows
set up path variable
user path variable or system path variable
JAVA_HOME = D:\Program Files\Java\jdk1.6.0_19
to check if set up successfully
java -version