wood burning stoves 2.0*
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
Author

problem with javax.servlet.*;

wayne drummond
Greenhorn

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\share.zip;C:\jdk1.3\bin;C:\JAVA;C:\Java\JavaRanchCommon.zip;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
Greenhorn

Joined: Jan 27, 2001
Posts: 5
Hi,
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.
Regards
Muffazal
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
C:\jakarta-tomcat-3-2-1\lib\servlet.jar
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
Ajan
[This message has been edited by Ajan Balakrishnan (edited February 01, 2001).]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem with javax.servlet.*;
 
Similar Threads
cannot resolve variable
Compiling a servlet
Windows 98 + Oracle8i + jdbc +
JDBC driver for Oracle 8i, Tomcat and JDK
Running Tomcat as service; JDBC not working now