java environment

in windows
set up path variable
user path variable or system path variable

  1. JAVA_HOME =
    JAVA_HOME = D:\Program Files\Java\jdk1.6.0_19
  2. PATH = %JAVA_HOME%\bin

to check if set up successfully
java -version

你可能感兴趣的:(java environment)