Solved

Compiling a Servlet

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
The viewer will learn how to implement Singleton Design Pattern in Java.

706 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now