File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes problem with javax.servlet.*; Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "problem with javax.servlet.*;" Watch "problem with javax.servlet.*;" New topic

problem with javax.servlet.*;

wayne drummond

Joined: Jan 15, 2001
Posts: 9
Hi all,
I trying to compile a java file, however I'm getting an error stating that the package javax.servlet does not exist. I have the correct classpath but just to make sure here's a copy:
E:\Oracle\Ora81\orb\classes\yoj.jar;E:\Oracle\Ora81\orb\classes\;C:\jdk1.3\bin;C:\JAVA;C:\Java\;C:\jakarta-tomcat-3-2-1\lib\servlet.jar;C:\jakarta-tomca t-3-2-1\lib\jasper.jar;C:\jakarta-tomcat-3-2-1\lib;
can someone lend a hand. Thanks
Muffazal Tikiwala

Joined: Jan 27, 2001
Posts: 5
Copy javax folder from the "jsdk" directory and paste it in the jdk1.2.2 "bin" folder and then compile ur java file.
Hope u have installed the jsdk if not please do install it.
Hope this will help.
Ajan Balakrishnan
Ranch Hand

Joined: Jan 04, 2001
Posts: 71
I got this probelm once when i miss to set servlet.jar file in my CLASSPATH.
I don't know if i make any sense but your directory name in your CLASSPATH setting for servlet.jar file says
For me it is C:\jakarta-tomcat-3.2.1\lib\servlet.jar
i.e, it should be "dot" instead of "dash" between Tomcat version number
[This message has been edited by Ajan Balakrishnan (edited February 01, 2001).]
I agree. Here's the link:
subject: problem with javax.servlet.*;
jQuery in Action, 3rd edition