• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javax.servlet

 
John Davis
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • 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?
 
Brusk Baran
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • 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...
 
Amol Desai
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic