Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


TomCat & J2EE

Posted on 2002-07-21
Medium Priority
Last Modified: 2013-11-24
I have installed TomCat. I am write a small Java Servlet
example. I compile it. Errors!. Seems like HTTPServet and other Servlet related classes are not found. Now the question is... Do I need to install J2EE too to compile this?
Question by:prain
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
LVL 86

Expert Comment

ID: 7167664
>>Do I need to install J2EE too to compile this?

The short answer is no. Your problem is probably to do with paths (you don't say anything detailed about your Tomcat version, platform, jdk etc)

Expert Comment

ID: 7167746
In your compile-time environment, include in your CLASSPATH variable the following libraries:


You will probably be fine by just including servlet.jar from that location.

These class libraries will be automatically included by Tomcat in the run-time environment.



Author Comment

ID: 7168576
to CEHJ:

Here is my config.

OS - windows ME
Web Server - jakarta-tomcat-3.2.3.
J2SE-  jdk1.3.1

Accepted Solution

gandalf94305 earned 200 total points
ID: 7168783
Download Tomcat 4.0.3. But the CLASSPATH issue I mentioned also works for 3.2.3.

Be careful with Windows ME, threads are somewhat tricky under that ..umm... (do we really call that an operating system :-) ... thing...


Author Comment

ID: 7169238


Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Suggested Courses

704 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question