I have a script that starts Tomcat and it looks like this:
rem set JRE_HOME=C:Program FilesJavajdk1.7.0_03
set JRE_HOME=C:Program FilesJavajre7
set CATALINA_HOME=D:estServerapache-tomcat-6.0.18
"%CATALINA_HOME%incatalina.bat" jpda start
I can set JRE_HOME to either my jre folder or my JDK folder and Tomcat will work, but if I remove JRE_HOME and use JAVA_HOME instead, Tomcat will only work if I give it the path to the JDK folder.
So what is the difference between JRE and JAVA home, why does Tomcat behave in this manner?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…