Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem and doubt in setting classpaths for Apache Tomat Server

 
Abhijit Ghatnekar
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,
I installed apache Tomcat, but I don't know how to set the classpath,environment variables JAVA_HOME etc etc.Can anyone guide me ?
 
santomh Mclain
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
set CATALINA_HOME to point the servers root directory
as C:\Program Files\apache-tomcat-5.5.17.

set JAVA_HOME to point the jdk root directory
as C:\Program Files\java\jdk6.0

set CLASSPATH to point all jar files(jsp-api.jar,servlet-api.jar etc) other than those belongs to jdk directory.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Annoying buzzer sound!

set CLASSPATH to point all jar files(jsp-api.jar,servlet-api.jar etc) other than those belongs to jdk directory.


The java compiler will pay attenion to CLASSPATH but Tomcat ignores it completely. See the class-loader-howto.html file that is normally part of a Tomcat installation for details on how Tomcat locates libraries.

Bill
 
Abhijit Ghatnekar
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sir,
Thank you so much for all your replies,My TomCat is working great!!!
Regards,
Abhijit
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic