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
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: 924

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 ?
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63844

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] [About Bear] [Books by Bear]
It is sorta covered in the JavaRanch Style Guide.
subject: why do tomcat require JVM ?
jQuery in Action, 3rd edition