This content has been marked as final.
Show 1 reply
-
1. Re: get environment var in servlet
sigrney Apr 30, 2004 5:36 PM (in response to zhebincong)I don't believe Java security features will allow you to get a handle on the jboss home dir environment variable with pure Java, but the standard way of getting the java home dir is like this:
String javaHome = System.getProperty("java.home");
See this Java tutorial page for more system properties you can use:
http://java.sun.com/docs/books/tutorial/essential/system/properties.html