Solved

Compiling a Servlet

Posted on 2004-09-23
3
413 Views
Last Modified: 2013-11-24

Hi

I am trying to compile a servlet on win2k , apache tomcat 4.0 .

I have mentioned the class path for the /apache/tomcat/coomon/lib/servlet.jar path.But i still get a javax.servlet does not exist error.

Is there any thing more i should do other than mentioning the class path for the servlet.jar? where are the classes for javax.servlet.*?

Thanks in advance for ur help :)
0
Comment
Question by:osdude
3 Comments
 

Accepted Solution

by:
rayman1964 earned 30 total points
ID: 12139523
I can reference java.servlet.* in my program and compile it without any problems.
Here is my classpath:

"c:\program files\j2sdk_nb\j2sdk1.4.2\jre\lib\rt.jar;.;c:\Program Files\Apache Tomcat 4.0\common\lib\servlet.jar;c:\myjspapp\WEB-INF\classes

As long as servlet.jar is in your class path, you should be able to compile it with no problems.

Jeff
0
 

Author Comment

by:osdude
ID: 12139683
It worked thanks. I
0
 
LVL 10

Expert Comment

by:jaggernat
ID: 12418592
it worked thanks .
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
difference of if loops 23 49
varialbe initialization 11 33
Remove Password Protection from pdf (with password) using an command line executable 5 52
Chrome and Firefox Java 5 34
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

809 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