1. Cek apakah plugin JRE sudah tersedia
2. Download JRE dari situs java.com
3. Pindahkan file ke folder java
4. Instalasi paket pendukung
5. Instalasi JRE
6. Melihat environment default
7. Mengubah environment default
8. Melihat versi Java yang sudah terinstalasi
9. Menghapus plugin bawaan openJDK
10. Membuat symbolic link di Mozilla
11. Restart Firefox
Cek ketersediaan JRE pada Firefox dengan Java Tester
http://javatester.org/enabled.html
http://javatester.org/version.html
Tampilan sebelum JRE terinstalasi :
Download JRE dari situs java.com :
http://www.java.com/en/download/linux_manual.jsp?locale=en&host=www.java.com
Akan terlihat 4 pilihan file :
Linux RPM (self-extracting file) filesize: 19.4 MB
Linux (self-extracting file) filesize: 19.9 MB
Linux x64 * filesize: 19.3 MB
Linux x64 RPM * filesize: 18.8 MB
Pilih yang "Linux RPM (self-extracting file) filesize: 19.4 MB".
Pindahkan hasil download ke folder Java. Buat dulu folder java di /usr
[root@localhost ~]# cd /usr
[root@localhost usr]# mkdir java
[root@localhost usr]# cd java
[root@localhost java]# cp /home/msmunir/Unduhan/jre-6u21-linux-i586-rpm.bin .
Instalasi paket pendukung
[root@localhost java]# yum install compat-libstdc++-33
[root@localhost java]# yum install compat-libstdc++-296
Instalasi JRE
[root@localhost java]# chmod a+x jre-6u21-linux-i586-rpm.bin
[root@localhost java]# ./jre-6u21-linux-i586-rpm.bin
Unpacking...
Checksumming...
Extracting...
UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu).
inflating: jre-6u21-linux-i586.rpm
Preparing... #################################### [100%]
1:jre ########################################### [100%]
Unpacking JAR files...
rt.jar...
jsse.jar...
charsets.jar...
localedata.jar...
plugin.jar...
javaws.jar...
deploy.jar...
Done.
Melihat Environment Default
[root@localhost java]# alternatives --config java
Ada 2 program yang menyediakan 'java'.
Perintah yang dipilih
-----------------------------------------------
1 /usr/lib/jvm/jre-1.5.0-gcj/bin/java
*+ 2 /usr/lib/jvm/jre-1.6.0-openjdk/bin/java
Enter untuk mempertahankan pilihan[+] saat ini, atau ketik nomer yang dipilih: ^C
Menambahkan environment
[root@localhost java]# alternatives --install /usr/bin/java java /usr/java/jre1.6.0_21/bin/java 3
Mengubah Environment Default
[root@localhost java]# alternatives --config java
Ada 3 program yang menyediakan 'java'.
Perintah yang dipilih
-----------------------------------------------
1 /usr/lib/jvm/jre-1.5.0-gcj/bin/java
*+ 2 /usr/lib/jvm/jre-1.6.0-openjdk/bin/java
3 /usr/java/jre1.6.0_21/bin/java
Enter untuk mempertahankan pilihan[+] saat ini, atau ketik nomer yang dipilih: 3
Melihat versi Java yang sudah terinstalasi
[root@localhost java]# java -version
java version "1.6.0_21"
Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
Java HotSpot(TM) Server VM (build 17.0-b16, mixed mode)
Menghapus plugin bawaan openJDK
[root@localhost java]# yum remove java-*-openjdk-plugin
Loaded plugins: download-order, downloadonly, fastestmirror, presto, priorities,
: refresh-packagekit
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package java-1.6.0-openjdk-plugin.i686 1:1.6.0.0-41.b18.ign5 set to be erased
--> Finished Dependency Resolution
Dependencies Resolved
===========================================================
Package Arch Version Repository Size
===========================================================
Removing:
java-1.6.0-openjdk-plugin i686 1:1.6.0.0-41.b18.ign5 @ign2010-all 183 k
Transaction Summary
===========================================================
Remove 1 Package(s)
Installed size: 183 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Erasing : 1:java-1.6.0-openjdk-plugin-1.6.0.0-41.b18.ign5.i686 1/1
Removed:
java-1.6.0-openjdk-plugin.i686 1:1.6.0.0-41.b18.ign5
Complete!
Membuat Symbolic Link
[root@localhost java]# cd /usr/lib/mozilla/plugins/
[root@localhost plugins]# ln -s /usr/java/jre1.6.0_21/lib/i386/libnpjp2.so
Restart Firefox lalu cek lagi dengan Java Tester
Ini adalah tampilan setelah plugin JRE terinstalasi ke Firefox 3.6.7 anda.
Lihat juga :
http://adhypermana.wordpress.com/
JRE digunakan manakala anda ingin melihat tampilan IP Camera berbasis Java seperti Trendnet TV-IP200 dan Trendnet TV-IP422
No comments:
Post a Comment