Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Getting catalina home value from within a java class  RSS feed

jaki jane
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 ]
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!