Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javax.servlet in servlet.jar?

 
NIKO.DEM.STLOUIS
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to get a servlet to compile and have the classpath pointed to /var/tomcat/lib/servlet.jar, but I keep getting the error javax.servlet does not exist and javax.servlet.http does not exist! I used export CLASSPATH=/var/...... and classpath shows up when I echo it. Is CLASSPATH the right environmental variable for jdk1.3.0_02?
 
Sam Dalton
Author
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is definitely the correct file to have in your classpath. servlet.jar definitely contains the javax.servlet.* and javax.servlet.http.* packages. I suggest it is a problem with how you have exorted your classpath. Try creating a shell script, the does the classpath setting, and also the compilation
S
 
NIKO.DEM.STLOUIS
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem was a permissions issue, my permissions were set wrong because the default when creating folders in Linux/UNIX is no entry.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic