File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Getting setup Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Getting setup" Watch "Getting setup" New topic

Getting setup

Mark Beavis
Ranch Hand

Joined: Apr 07, 2005
Posts: 43
Hi all - I'm just getting setup to write and deply servlets and JSPs.

I've got the HFJS book and I've installed Tomcat ok.

However, when I try to compile my first servlet my compiler can't find the


packages. Currently I'm using a the JCreator IDE and a 1.4.2 compiler. How do I download the packages so my compiler can see them?

Sai Patnala
Ranch Hand

Joined: Jan 09, 2002
Posts: 60
You will need to get j2ee as well downloaded.
Here is the link:
Also you may want to get jstl.jar also into classpath.

I am sure JCreator has some way of including jar files into classpath.

Martyn Clark
Ranch Hand

Joined: Apr 16, 2005
Posts: 108
Hi Mark
if you have not solved your problem yet, you need to add to your classpath the servlet-api.jar that can be found in Tomcat_Home common lib folder and also for jsp you will need to copy form Java_Home lib tools.jar in to Tomcat common lib folder. Hope this works for you...

Martyn...<br /> <br />SCJP 1.4 SCWCD 1.4
Karthikeyan Varadarajan
Ranch Hand

Joined: Jul 04, 2002
Posts: 98
HI Mark

The servlet jar is missing in your classpath. Set the classpath to it. It will available in the tomcat_home\common\lib\

~With Smile<br />VK
Mark Beavis
Ranch Hand

Joined: Apr 07, 2005
Posts: 43
Thanks a lot guys - got it working now

I agree. Here's the link:
subject: Getting setup
It's not a secret anymore!