Question:
Can i get enviroment variables e.g. like "JAVA_HOME", "TOMCAT_HOME", "JBOSS_DIST" from Java ?
I used to use System.getProperty("tomcat.home");
in my old tomcat and it worked fine.
Now, i switched in JBoss 3.2.1 and it simply returs null.
Can anyone help ?
FOUND IT!!!!
i modified run.bat of JBoss and in the
JAVA_OPTS i added
-Dtomcat.home=%TOMCAT_HOME%
and now inside each JSP i can write
System.getProperty("tomcat.home");
and get the tomcat.home variable.