Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servlet

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am using IBM visual age to write servlets.Can anyone tell
me how to use the servlet package in the class.
In My program if i give
import javax.servlet.*
import javax.servlet.http.*;
I get error as javax package error.what should i do?
Thanks
 
R Mutum
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
avn:
Place a copy of servlet.jar in c:\jdk...\jre\lib\ext folder. The jar file is in lib folder of your server installation (tomcat, etc.). This should fix it.
RM
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As also ointed by R Muttam .
You can also set the classpath . Set the classpath which should also include the jar files(if reqd).
e.g:set classpath=%classpath%;c:\jsdk2.0\lib;c:\jsdk2.0\lib\jsdk.jar;
Please verify your exact path.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks! for the reply.I know that by setting the
classpath for the suns JDK , the problem will be solved.
But my problem, i am using IBM visual age and from here
how i can set the classpath, i cant type set classpath...
I hope i am clear in explaining my problem.
Thanks!

[This message has been edited by avn (edited September 08, 2000).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic