[TriLUG] Global JAVA_HOME variable?

Janyne Kizer janyne_kizer at ncsu.edu
Tue Mar 5 10:05:56 EST 2002


Thanks everyone!

Sam Penfield wrote:
> 
> 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.
> >
> 
> _______________________________________________
> TriLUG mailing list
>     http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ:
>     http://www.trilug.org/~lovelace/faq/TriLUG-faq.html

-- 

Janyne Kizer
CNE-3, CNE-4, CNE-5
Systems Programmer Administrator I
NC State University, College of Agriculture & Life Sciences
Extension and Administrative Technology Services
Phone: (919) 515-3609



More information about the TriLUG mailing list