Most of the Linux operating systems comes with pre-installed OpenJDK package to run java-based applications and plugins. Now, you’re thinking if Java already ships with OS, why we need to install it again?. Yes! right good question, but in certain cases we need Sun/Oracle Java program to compile and run particular development applications. This is the reason we are compiling this article on how to install Sun/Oracle Java JDK /JRE 7u25 on RHEL 6.4/6.3/6.2/6.1/6/5.8, CentOS 6.4/6.3/6.2/6.1/6/5.8 and Fedora 18/17,16,15,14,13,12 systems using binary RPM files.
Downloading Java JDK / JRE 6 Binary
Download Java JDK /JRE 7u25 RPM files for your system OS bit. For reference, we have provided the rpm file-names, please select these below mentioned files only.
For RHEL/CentOS/Fedora 32-bit OS
For RHEL/CentOS/Fedora 64-bit OS
Install Java JDK / JRE 7u25
Now, execute the rpm files to install JDK /JRE programs on systems.
## Install Java on 32-Bit OS ## # rpm -Uvh jdk-7u25-linux-i586.rpm # rpm -Uvh jre-7u25-linux-i586.rpm ## Install Java on 64-Bit OS ## # rpm -Uvh jdk-7u25-linux-x64.rpm # rpm -Uvh jre-7u25-linux-x64.rpm
Check Java JDK / JRE 7u25
Verify by running the following command, you will get similar results as below.
[root@tecmint ~]# java -version java version "1.7.0_25" Java(TM) SE Runtime Environment (build 1.7.0_25-b04) Java HotSpot(TM) 64-Bit Server VM (build 22.1-b02, mixed mode)
[root@tecmint ~]# javac -version javac 1.7.0_25
Enable Java JDK / JRE 7u25 Support in Firefox
To enable JDK /JRE support in Firefox we need to run the following commands to enable it. If you don’t have Firefox installed and like to install it, then check How to Install Firefox 14 guide.
## For 32-Bit OS ## # alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so libjavaplugin.so /usr/java/jdk1.7.0_25/jre/lib/i386/libnpjp2.so 20000 ## For 64-Bit OS ## # alternatives --install /usr/lib64/mozilla/plugins/libjavaplugin.so libjavaplugin.so.x86_64 /usr/java/jdk1.7.0_25/jre/lib/amd64/libnpjp2.so 20000
Verify it, by restarting Firefox and enter about:plugins on the address bar. You will get similar to below screen.
Java support in Firefox
Latest posts by Ravi Saive (see all)
- 10 Useful Free Linux eBooks for Newbies and Administrators - December 9, 2013
- TeamViewer 9 Released – Install on RHEL/CentOS/Fedora and Debian/Ubuntu - December 8, 2013
- CentOS 6.5 Released – Upgrade from CentOS 6.x to CentOS 6.5 - December 2, 2013
Linux Services & Free WordPress Setup
Our post is simply ‘DIY’ aka ‘Do It Yourself, still you may find difficulties and want us to help you out. We offer wide range of Linux and Web Hosting Solutions at fair minimum rates. Please submit your orders by Clicking Here.