當我嘗試下面的代碼運行,錯誤和Tomcat service.bat安裝
D:\apache-tomcat\bin>service.bat install
我得到這個錯誤。
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK not a JRE
我怎麼能解決這個問題?
你不必修改'service.bat'本身,你可以在調用'service.bat'之前輸入'set ...'命令 – Stijn 2017-07-05 09:28:10