Solved

Compiling a Servlet

Posted on 2004-09-23
3
417 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
[X]
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
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

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

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

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
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:
Six Sigma Control Plans

717 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