ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
A nice way to store all the java-settings is to add the file java.sh to /etc/profile.d
Place all the java-settings such as JAVA_HOME, J2EE_HOME, CATALINA_HOME and so on in this file and after making this file executable (chmod +x java.sh), all the settings will be available to all the users on this machine
My java.sh contains:
To my knowledge, the JAVA_HOME variable is used by all kinds of Java-software that needs a Java runtime environment such as Open Office or the Eclipse development tool.
The first versions of Tomcat needed the CATALINA_HOME setting. I don't know if this setting is still mandatory but I still maintain it.
Ant is a make-utility