为什么Tomcat需要安装JDK? [英] Why does Tomcat require JDK installed?

查看:40
本文介绍了为什么Tomcat需要安装JDK?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我所知,JRE 是运行时,JDK 用于开发 Java 代码.但是在生产中的Tomcat服务器上,Java应用程序是没有开发的.

To my knowledge, JRE is run time and JDK is for development of the Java code. But on the Tomcat server in production, there would be no development of the Java application.

那么,我的问题是为什么我们不能只安装 JRE 来运行 Tomcat,为什么运行 Tomcat 需要安装 JDK?

So, my question is why can't we run Tomcat installing only the JRE and why is JDK installation necessary for running Tomcat?

推荐答案

Tomcat 不需要需要 JDK.它只需要一个 JRE.JSP 编译由捆绑的 Eclipse 编译器完成.

Tomcat does not require a JDK. It needs a JRE only. JSP compilation is done by the bundled Eclipse compiler.

这篇关于为什么Tomcat需要安装JDK?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆