Advertisement

04.30.2008 at 07:42PM PDT, ID: 23367513
[x]
Attachment Details

Unable to compile a servlet

Asked by pdurbha in Java Servlets

Tags: Sun, Java, package javax.servlet does not exist

HI,

I am trying to compile a servlet from the command line using the following command:

D:\myGE\training\scwcd\MyProjects\beerV1>javac -classpath "C:\Tomcat 6.0\lib\se
vlet-api.jar":classes:. -d classes src\com\example\web\BeerSelect.java
src\com\example\web\BeerSelect.java:4: package javax.servlet does not exist

I keep getting a javax.servlet not found errore message.  I am not sure what I need to do here as I am passing the servlet-api.jar in the argument..

I would appreciate any help yo can provideStart Free Trial
[+][-]05.01.2008 at 12:31AM PDT, ID: 21476982

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Java Servlets
Tags: Sun, Java, package javax.servlet does not exist
Sign Up Now!
Solution Provided By: pkwan
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628