Does Tomcat require JDK or JRE?

前端 未结 4 726
不知归路
不知归路 2020-12-05 04:25

I\'ve read many articles and posts related to Tomcat and the Java runtime. I am confused and need help. Can anybody clear my doubt regarding whether Tomcat requires JDK or J

4条回答
  •  醉话见心
    2020-12-05 04:38

    I'm running TOMCAT 7.0.92.0 builted in XAMPP v3.2.4 installed in C:\XAMPP in a Windows 10.

    I had installed JDK jdk-13.0.2 with the following environment variables set:

    CATALINA_HOME = "C:\xampp\tomcat"
    JAVA_HOME = "C:\Program Files\Java\jdk-13.0.2\"
    JRE_HOME = "C:\Program Files\Java\jdk-13.0.2\" 
    

    *Tried also without setting JRE_HOME and also pointing it at C:\Program Files\Java\jdk-13.0.2\bin\

    But it wouldn't work until I installed JRE jre1.8.0_241 and set JRE_HOME to "C:\Program Files\Java\jre1.8.0_241\"

    Right now in XAMPP's Control Panel it shows the server at "Attempting to start Tomcat app..", and never shows it at running mode, but it's working.

提交回复
热议问题