Java:Install IBM Java on Fedora and config plugin at Firefox
Follow these steps to install IBM Java at Fedora, and after config the Mozilla Firefox to use ibm java plugin.
Obs.: This procedure works for Google Chrome too.
Current version is
- Fedora: Fedora release 19 (Schrödinger’s Cat) x86_64
- IBM Java: 7.0-5 x86_64
Procedure:
1) Change to the root user
[ebasso@ebasso ~]$ su -
2) Let's install the java openjdk and the icedtea plugin
[root@ebasso ~]# yum -y install java-1.7.0-openjdk icedtea-web
3) Download ibm-java-sdk from IBM and put in the /tmp folder
4) Installing the ibm-java-sdk using yum
[root@ebasso ~]# yum -y localinstall /tmp/ibm-java-x86_64-sdk-7.0-5.0.x86_64.rpm
5) Let's install on alternatives
[root@ebasso ~]# alternatives --install /usr/bin/java java /opt/ibm/java-x86_64-70/jre/bin/java 20000
[root@ebasso ~]# alternatives --install /usr/bin/javaws javaws /opt/ibm/java-x86_64-70/jre/bin/javaws 20000
[root@ebasso ~]# alternatives --install /usr/lib64/mozilla/plugins/libjavaplugin.so libjavaplugin.so.x86_64 /opt/ibm/java-x86_64-70/jre/lib/amd64/libnpjp2.so 20000
6) After install we need to config the java
[root@ebasso bin]# alternatives --config java There are 3 programs which provide 'java'. Selection Command ----------------------------------------------- 1 /usr/java/default/bin/java *+ 2 /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.25-2.3.12.3.fc19.x86_64/jre/bin/java 3 /opt/ibm/java-x86_64-70/jre/bin/java Enter to keep the current selection[+], or type selection number: 3
So we put 3 to select the ibm java.
To check you only need to run java -version command.
[root@ebasso bin]# java -version java version "1.7.0" Java(TM) SE Runtime Environment (build pxa6470sr5-20130619_01(SR5)) IBM J9 VM (build 2.6, JRE 1.7.0 Linux amd64-64 Compressed References 20130617_152572 (JIT enabled, AOT enabled) J9VM - R26_Java726_SR5_20130617_1436_B152572 JIT - r11.b04_20130528_38954ifx1 GC - R26_Java726_SR5_20130617_1436_B152572_CMPRSS J9CL - 20130617_152572) JCL - 20130616_01 based on Oracle 7u25-b12
7) Now we will need to config browser plugin
[root@ebasso bin]# alternatives --config libjavaplugin.so.x86_64 There are 4 programs which provide 'libjavaplugin.so.x86_64'. Selection Command ----------------------------------------------- 1 /usr/java/default/lib/amd64/libnpjp2.so 2 /usr/lib64/IcedTeaPlugin.so *+ 3 /opt/ibm/java-x86_64-70/jre/lib/amd64/libnpjp2.so Enter to keep the current selection[+], or type selection number: 3
So we put 3 to select the ibm libjavaplugin.
To check you only need to access a site with java enabled or in Firefox address bar write about:plugins.
Look for "IBM Developer Kit for Linux,Java,1.7.0"