aspose file tools*
The moose likes Beginning Java and the fly likes catalina_home Value  ????? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "catalina_home Value  ?????" Watch "catalina_home Value  ?????" New topic
Author

catalina_home Value ?????

Maneesh Chauahn
Ranch Hand

Joined: Mar 06, 2006
Posts: 48
Hi All,
Can any one please tell me how to find the catalina_home variable value in a simple java program .........
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 13884
    
  10

CATALINA_HOME is an environment variable that Tomcat uses. If you're using Java 5.0 or newer, you can get the value by using the method java.lang.System.getenv(...). Look it up in the API documentation.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Not an advanced question. Moving...


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: catalina_home Value ?????
 
Similar Threads
set Tomcat 6 - Variable Environment
Integrating Tomcat with Eclipse 2.1.1
Tomcat 5.5.23
$CATALINA_HOME
CATALINA_HOME or TOMCAT_HOME!!!