Thursday, December 24, 2009

Setting JAVA_HOME in RHL5

Edit /etc/profile.


JAVA_HOME=/usr/java/jre1.6.0_17
export JAVA_HOME
PATH=$ORACLE_HOME/bin:$JAVA_HOME/bin:$PATH
export PATH

2 comments:

  1. I am using OpenSUSE latest Linux distribution and it keeps crashing when I do the export PATH. If you want I can send the stack trace for your reference. Please help.

    ReplyDelete
  2. Dear Fan,

    http://forums.opensuse.org/archives/sf-archives/archives-miscellaneous/312689-path.html

    Hope this helps. All the best.

    ReplyDelete