Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem with javax.servlet.*;

 
wayne drummond
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic