tomcat里设置java_home的时候,为什么一定要指向jdk目录?指向jre则报错?
难道tomcat需要用到jdk里的类库吗?
谢谢!
------解决方案--------------------
看tomcat的bin目录下的catalina.bat,定位到198行
echo Using CATALINA_BASE: "%CATALINA_BASE%"
echo Using CATALINA_HOME: "%CATALINA_HOME%"
echo Using CATALINA_TMPDIR: "%CATALINA_TMPDIR%"
if ""%1"" == ""debug"" goto use_jdk
echo Using JRE_HOME: "%JRE_HOME%"
goto java_dir_displayed
:use_jdk
echo Using JAVA_HOME: "%JAVA_HOME%"
:java_dir_displayed
echo Using CLASSPATH: "%CLASSPATH%"