• 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

javax.servlet

 
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have
import javax.servlet.*;
import javax.servlet.http.*;
in my servlet but get the message
package javax.servlet does not exist and
package javax.servlet.http does not exist
My SDK situation is j2sdk1.4.1 and I also installed j2see1.4 and included the j2ee.jar in the path. I thought that javax.servlet.http was included in here somewhere.
Am I missing a download? I've been all over SUN looking for javax.servlet but haven't found any download that might have these packages.
Anybody can help with this?
 
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
put these JARs also in

C:\j2sdk1.4.1_02\jre\lib\ext\


I dont know why. since they also existed on the classpath but it had not worked in my case before.
I heard from someone, that servlet-container does not "see" the system classpath, but not sure about it...
 
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
To compile the servlet classes,you need to set j2ee.jar in the classpath and not in the path.
Oherwise you could also place them
<java-home>\jre\lib\ext\ directory.
 
reply
    Bookmark Topic Watch Topic
  • New Topic