JAVA_HOME from /etc/profile

Ankush Grover ankush174 at gmail.com
Sun Feb 19 07:53:12 UTC 2006


On 2/19/06, John Pierce <john.j35 at gmail.com> wrote:
>
> I usually install java from a bin file downloaded from java.sun.com, I
> unpack and install it in /opt.  I then create symbolic link like this:
> ln -s /opt/jre1.5.0_06 /java
>
> Then I place the following two lines in /etc/profile
>
> pathmunge /java/bin
> JAVA_HOME="/java"
>
> I then modify the export line and add JAVA_HOME to the end of it.
>
> >From this point forward whenever I update my java package I only need
> to recreate the symbolic link named /java and make it point to the new
> /opt/jreWHATEVER directory and it work instantly.
>
> John
> --
> Registered Linux User 263680, get counted at
> http://counter.li.org
>
> --
> /etc/profile.d/java.sh



PATH=$PATH:/usr/java/jre1.5.0_01/bin


Thats all.

Regards

Ankush
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20060219/cd4e1fbe/attachment-0001.htm>


More information about the fedora-list mailing list