Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting catalina home value from within a java class

 
jaki jane
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way to get the absolute path to tomcat home directory in a java program when CATALINA_HOME env variable is not set? I can probably use some class in org.apache.catalina but the jars are in different folders depending on the version of tomcat and I need the program to be version independent. I tried using the system property catalina.home but it returns a null. Also, I don't have any .bat/.sh files in my tomcat5 directory as I installed it as a service for Windows. Please help me here
[ September 23, 2008: Message edited by: jaki jane ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic