title: servlet class not getting generated and version of JDK used to start tomcat
body: <p>My directory structure for a servlet in netbeans is as follows:</p>
  
  <p><img src="https://i.stack.imgur.com/C1LNM.jpg" alt="enter image description here"></p>
  
  <p>Q1. Is it mandatory that I should see servlet class below my <code>web.xml</code>. It's not getting generated for me. Because I believe I need to specify the class name in the <code>web.xml</code> inside the <code>&lt;servlet</code>> tag.</p>
  
  <p>Q2. How do I find out which JDK version is used to start the tomcat? I have JDK 1.8 installed on my machine and I am using that in NEtbeans 7.4. I am running into the same problem as asked <a href="https://stackoverflow.com/questions/611465/tomcat-is-unable-to-find-my-servlet-and-is-throwing-exceptions-but-why">here</a> and trying to find a fix based on the @Macon Pegram's answer mentioned over there.</p>
  
  <p>Thanks</p>