Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

why do tomcat require JVM ?

 
gurpeet singh
Ranch Hand
Posts: 924
1
Fedora Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65111
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic