The FC4 release notes advise to not install Sun's JRE rpms, but the self-xtractors instead. If you have these installed, you need to tell certain Java apps to use Sun's VM.
Edit /etc/profile.d/java.sh and type
export J2RE_HOME=/opt/jre1.5.0_03
export PATH=$J2RE_HOME/bin:$PATH
At the prompt, execute . /etc/profile.d/java.sh
Then execute:
alternatives --install /usr/bin/java java /opt/jre1.5.0_03/bin/java 2
alternatives --config java
Output
There are 2 programs which provide 'java'.
Selection Command
---------------------------------------------
*+ 1 /usr/lib/jvm/jre-1.4.2-gcj/bin/java
2 /opt/jre1.5.0_03/bin/java
Enter to keep the current selection[+], or type selection number:2
/usr/sbin/alternatives --display java
You should see:
java - status is manual.
link currently points to /opt/jre1.5.0_03/bin/java
No comments:
Post a Comment