[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Compiling a Servlet

Posted on 2004-09-23
3
Medium Priority
?
421 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 90 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

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?
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses

649 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