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 Spring in Action this week in the Spring 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: 14268
    
  21

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 8 API documentation
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 ?????