This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "why do tomcat require JVM ?" Watch "why do tomcat require JVM ?" New topic
Author

why do tomcat require JVM ?

gurpeet singh
Ranch Hand

Joined: Apr 04, 2012
Posts: 924
    
    1

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
Marshal

Joined: Jan 10, 2002
Posts: 60794
    
  65

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]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: why do tomcat require JVM ?
 
Similar Threads
From JSP 1.2 to 2.0 problem
Basic Doubts
help with tomcat - 404 cannot find servlets
How to get Tomcat
servlet running in different JVM than other servlets