This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 13875
    
  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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: catalina_home Value ?????
 
Similar Threads
Tomcat 5.5.23
CATALINA_HOME or TOMCAT_HOME!!!
Integrating Tomcat with Eclipse 2.1.1
set Tomcat 6 - Variable Environment
$CATALINA_HOME