• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Where to find javax.servlet.jsp package?

 
gyan kumar
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using jdk6 and tomcat 6.
 
sagar kumar nerella
Greenhorn
Posts: 18
Java Notepad Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if you are using tomcat6 .
the default installation directory will be:
c:\program files\apache software foundation\tomcat 6.0.
in this directory you should find the lib(libraries) directory there you will find servlet.jar or tomcat-servlet.jar and also the main containers responsible for running of servletengine.

extract the jar file and set the class path to the extracted directory or just copy the jar file to the webapplication you building.

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65123
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sagar kumar nerella wrote:extract the jar file and set the class path to the extracted directory or just copy the jar file to the webapplication you building.

NO!!!

Do not extract or copy the file anywhere! Leave it where it is and just make sure that the one jar file is in your compilation class path.

The last thing you need is multiple copies floating around that are likely to get out of version sync with each other.

Again, do not extract, do not copy!

And above all, do not ever copy it to your web application. Ever!
 
gyan kumar
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in my classpath servlet.jar file classpath is set but still not able to compile.
 
gyan kumar
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just tried with jsp-api.jar and was able to compile.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65123
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For Tomcat 6, the Servlet API is in servlet-api.jar, and the JSP API in jsp-api.jar.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic