File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servlet

 
Anonymous
Ranch Hand
Posts: 18944
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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).]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic