Should I add both JAVA_HOME and JRE_HOME in environmental variable, PATH?

后端 未结 4 1748
北恋
北恋 2020-12-06 03:21

I ran into this error while setting up my Tomcat and Java environmental path:

Neither the JAVA_HOME nor the JRE_HOME environmental variables is defi

4条回答
  •  孤街浪徒
    2020-12-06 04:13

    You really do not need to add JRE_HOME to the system variables. Tomcat looks for JAVA_HOME or JRE_HOME to get itself start. This is because tomcat require some java library to get itself started. Tomcat will provide additional debugging functionality if Jdk is provided instead of Jre. Additional details here

    Adding {JAVA_HOME_DIR}/bin to your path would enable to access java from anywhere.

提交回复
热议问题