File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes why do tomcat require JVM ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "why do tomcat require JVM ?" Watch "why do tomcat require JVM ?" New topic

why do tomcat require JVM ?

gurpeet singh
Ranch Hand

Joined: Apr 04, 2012
Posts: 923

why do tomcat or for that matter any other servlet contaier requires JVM ? there is no main method in the servlets/jsp and the lifecycle of servlets/jsp is managed by container so why the need of JVM ? am i missing something here ? the other day i was installing glassfish in eclipse and it only asked me that it required JDK. so i selected JDK in the option where it askes for VM. shouldnt it be the same case for tomcat as well ?

OCPJP 6(100 %) OCEWCD 6(91 %) OCPJBCD(93%)
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60045

Tomcat is written in Java. And even so, how could it run your Java servlets without a JVM?

And the JVM is part of the JDK.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: why do tomcat require JVM ?
Similar Threads
Basic Doubts
servlet running in different JVM than other servlets
From JSP 1.2 to 2.0 problem
How to get Tomcat
help with tomcat - 404 cannot find servlets