how can export java?
craigwhite at azapple.com
Wed Apr 1 21:50:41 UTC 2009
On Wed, 2009-04-01 at 17:35 -0400, chloe K wrote:
> I edit .bash_profile. but it can't work
> export PATH JAVA_HOME
> what wrong I am?
> and why I use ln -s /usr/sbin/java /opt/SUN/jdk/bin/java
> it won't work properly
> Thank you
this is what I do...YMMV
# cat /etc/profile.d/java.sh
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$JAVA_HOME/jre/lib/i386: \
obviously you have to adjust for your paths... the idea is that all
logins will execute shell scripts in /etc/profile.d
and I would expect that you have your symbolic link wrong...
ln -s /opt/SUN/jdk/bin/java /usr/bin/java
source for link target for link
which will work if /usr/bin/java (target) doesn't already exist
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the users