File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Getting setup" Watch "Getting setup" New topic
Author

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

javax.servlet.*;
javax.servlet.http.*;

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?

Thanks
Mark
Sai Patnala
Ranch Hand

Joined: Jan 09, 2002
Posts: 60
You will need to get j2ee as well downloaded.
Here is the link: http://java.sun.com/j2ee/1.4/download.html#sdk
Also you may want to get jstl.jar also into classpath.

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


SCJP2, SCWCD 1.4
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

Cheers
Mark
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting setup
 
Similar Threads
Access modifiers
jsp/jar file prob
JMS, quick question
Two classes in two different sources.
How to get servlet's full path name