File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Servlet Compilation Error 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 "Servlet Compilation Error" Watch "Servlet Compilation Error" New topic

Servlet Compilation Error

argha bakshi

Joined: Sep 05, 2007
Posts: 2
Hi Everybody ,

I am facing some problems in compiling servlets . I dont know why but have jdk1.5 & tomcat 5.5 installed in my xp . I was trying to run the source code through jcreatorLE but it cant find javax.servlet & javax.servlet.http like packages . please give a cleaner picture about how to configure Tomcat & JDK1.5 to compile servlets .

Thanks again
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60785

Your Tomcat installation will have the jar files that you need to include. Look in $TOMCAT_HOME/common/lib for jar files servlet-api.jar and jsp-api.jar. Be sure that these jar files are added to the classpath for compilation.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074

Welcome to JavaRanch.

See Compiling Servlets in the FAQ.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
sudhir nim
Ranch Hand

Joined: Aug 29, 2007
Posts: 212

This page also explains How to setup the development environment

[Servlet tutorial] [Servlet 3.0 Cook Book]
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Servlet Compilation Error
Similar Threads
J2SE 0r JRE 5.0 Download
deploying and running web application in the home pc
where to place servlet class file
Tomcat 5.5.7 : help
Migrated to tomcat 5