Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
|
Apache Tomcat General discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 31st, 2006, 02:29 AM
Registered User
 
Join Date: Mar 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to smshinde
Default About Tomcat: How to use servlet-api.jar

Hello,
I have recently installed Apache Tomcat 5.5 on Windows 2000 OS.
How to use the file
C:\Program Files\Apache Software Foundation\Tomcat
5.5\common\lib\servlet-api.jar
to compile the servlets?
Please help.

 
Old July 12th, 2006, 07:55 AM
Authorized User
 
Join Date: Mar 2006
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Type the following command on command prompt and compile ur program.
Not exactly. Similar to this. It means, Tomcat path may be different in ur system

set classpath=%classpath%;C:\Tomcat 5.0\common\lib\servlet-api.jar
 
Old July 12th, 2006, 08:08 AM
Registered User
 
Join Date: Apr 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You have to put in CLASSPATH :
  C:\Program Files\Apache Software Foundation\Tomcat
5.5\common\lib\servlet-api.jar
You have to write these from above in Start -> Control Panel-> System -> Advanced -> Environment Variables
After that you have to restart computer

 
Old July 12th, 2006, 02:05 PM
Friend of Wrox
 
Join Date: Jan 2006
Posts: 198
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Mr. Ram and briss are correct, however you do not need to restart your computer. You only need to restart any Java processes that are running. When they are restarted they will pick up the new CLASSPATH definition.

Jon Emerson
http://www.zoominfo.com/JonEmerson





Similar Threads
Thread Thread Starter Forum Replies Last Post
Oracle Servlet Engine Using with Tomcat goback Apache Tomcat 7 July 13th, 2007 03:16 PM
Tomcat and Servlet Beginner raghda Apache Tomcat 2 May 17th, 2007 06:32 AM
Servlet is running after tomcat is stopped. pandian Apache Tomcat 3 January 2nd, 2006 07:56 AM
servlet with tomcat problem... thiNkspAce Apache Tomcat 2 October 23rd, 2004 05:38 AM
Servlet.jar rockmovinman Apache Tomcat 2 January 17th, 2004 03:04 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.