Solved

Compiling a Servlet

Posted on 2004-09-23
3
415 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ejb stateless example 2 43
jsp error 6 46
$_GET call between URL 3 44
Tomcat 9 + java 8 error while trying to deploy a war file 2 723
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
The viewer will learn how to implement Singleton Design Pattern in Java.

733 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