This content has been marked as final. Show 3 replies
Peter Hartgerink wrote:Option 1: install the <tt>java-1.6.0-openjdk</tt> package that's included with OL5 instead of the Sun Java package. This will provide you with the OpenJDK 6.
I'm not that experienced with Linux and would appreciate some help . Is it possible to "uninstall" the outdated version? Would this help? Are there logs of the JDK installation that I can check? Any help would be appreciated.
Option 2: Run <tt># alternatives --config java</tt>to configure which java binary is used by default.
The following should work:
su - root
# java -version
java version "1.4.2"
Download and install the version for your platform x86 (i585) or jdk-6u33-linux-x64-rpm.bin (x86_64 ) from
# chmod u+x jdk-6u33-linux-x64-rpm.bin
Register the Java installation:
# alternatives --install /usr/bin/java java /usr/java/jdk1.6.0_33/bin/java 2
Change the default java version:
# alternatives --config java
Test if it works:
# su - dude
$ java -version
java version "1.6.0_33"
Java(TM) SE Runtime Environment (build 1.6.0_33-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03, mixed mode)