By default, Fedora 14/13/12 and CentOS/Red Hat (RHEL) 5.5/6 Linux operating systems use the OpenJDK Java, which is a good choice for normal use and it works with almost all the Java programs normally. OpenJDK is also easy to install and maintain with YUM package management, but some cases, Sun/Oracle Java installation is necessary, for example, if some program have to compile with Sun/Oracle Java or a particular program does not work without Sun/Oracle Java.
This is guide, howto install Oracle Java JDK/JRE 6u23 on Fedora 14, CentOS/RHEL 5.5/6.
Install Sun/Oracle Java JDK /JRE 6u23 on Fedora 14/13/12 CentOS 5.5, Red Hat (RHEL) 5.5/6
1. Download Sun/Oracle Java JDK or JRE RPMs
Download Sun/Oracle Java JDK or JRE from here (current version is JDK 6 Update 23)http://www.oracle.com/technetwork/java/javase/downloads/index.html.
Note: Select rpm.bin package (example jdk-6u23-linux-i586-rpm.bin, jre-6u23-linux-i586-rpm.bin, jdk-6u23-linux-x64-rpm.bin or jre-6u23-linux-x64-rpm.bin).
Note: Select rpm.bin package (example jdk-6u23-linux-i586-rpm.bin, jre-6u23-linux-i586-rpm.bin, jdk-6u23-linux-x64-rpm.bin or jre-6u23-linux-x64-rpm.bin).
2. Change to root user.
3a. Run Sun/Oracle Java JDK binary
Note: Use full file name (without asterix) if you have both i586 and x64 versions downloaded.
3b. Run Sun/Oracle Java JRE binary
Note: Use full file name (without asterix) if you have both i586 and x64 versions downloaded.
4a. Install Sun/Oracle JDK java, javaws, libjavaplugin.so (for Firefox/Mozilla) and javac with alternatives –install command
4b. Install Sun/Oracle JRE java, javaws and libjavaplugin.so (for Firefox/Mozilla) with alternatives –install command
5. Check current java, javac, javaws and libjavaplugin.so versions
Note: Check libjavaplugin.so with restarting Mozilla Firefox and writing about:plugins on address bar.
6. Swap between OpenJDK and Sun/Oracle JDK versions
Note: java with [+] is currently on use
Post-Installation Setup
Add JAVA_HOME environment variable to /etc/profile file or $HOME/.bash_profile file
0 Comment:
Post a Comment