Java的Windows環境變數設定


"System Properties" >> "Advanced" >> "Environment Variables..." >> "System variables"

Click on [ New... ]
Variable name: JAVA_HOME
Variable value: C:\Program Files\Java\jdk1.x.x_xxx

"System variables" select "Path"
Click on [ Edit... ]
"Edit environment variable"
Click on [ New ]
%JAVA_HOME%\bin


Test your configuration
command
echo %JAVA_HOME%
javac -version

留言