[TriLUG] Global JAVA_HOME variable?

Sam Penfield spenfield at nc.rr.com
Tue Mar 5 09:08:51 EST 2002


The /usr/bin/java symlink works great most of the time but some 
applications still require it to be set.  One that comes to mind is 
Sun's Forte for Java.  Putting it in /etc/profile works great although I 
do test with different version so I set up some shell scripts to manage 
the versions.


Kevin - The Alchemist - Sonney wrote:

>On Tue, 2002-03-05 at 08:27, Janyne Kizer wrote:
>
>>I was wondering if there is a good way to set a system wide variable for
>>JAVA_HOME?  I understand setting it in each person's .bash_profile but I
>>would prefer to set it once for the system if possible so that if/when
>>we change to a newer JRE we only have to change the path in one place. 
>>
>
>1- You can set system variables in /etc/profile
>2 - I usually create a symlink from /usr/local/java to the proper
>JAVA_HOME and set the system JAVA_HOME=/usr/local/java - that way, when
>I upgrade the JDK, I just change the symlink, and it's done.
>





More information about the TriLUG mailing list