• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

problem with javax.servlet.*;

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).]
 
I'm full of tinier men! And a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic