1. Test Keberadaan Java dalam system dan menghapus karena menginstall
lewat Yum (lakukan lewat RPM) : (perintah dibawah)
[pietermarbun@pieter-desktop]#rpm -q jre
jre-1.6.0-fcs
[pietermarbun@pieter-desktop]#rpm -e jre
2.
Download the Java package dari:
http://java.sun.com/javase/downloads/index.jsp
http://java.sun.com/javase/downloads/index.jsp
3.
Select: Java Runtime
Environment (JRE) 6 Update 3 (the JDK adalah untuk developers)
4.
Pada Halaman berikut, accept
the license agreement, dan pastikan memilih berikut:
Linux self-extracting file jre-6u3-linux-i586.bin 18.23 MB
5.
To install:
[pietermarbun@pieter-desktop]#sh jre-6u3-linux-i586.bin
(hit 'space' till the end, then type 'yes')
[pietermarbun@pieter-desktop]#mv -f jre1.6* /opt/jre1.6
[pietermarbun@pieter-desktop]#ln -s /opt/jre1.6/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/libjavaplugin_oji.so
Note: The compat-libstdc++-33 compatibility
libraries dibutuhkan browser plugin untuk aktif
To update: Jika untuk update JRE
package, simple delete the /opt/jre1.6 directory dan copy download terbaru ke /opt/jre1.6 – tidak perlu menjalankan
'ln -s' command.
[pietermarbun@pieter-desktop]#/usr/sbin/alternatives --install /usr/bin/java java /opt/jre1.6/bin/java 2
[pietermarbun@pieter-desktop]#echo 2 | sudo /usr/sbin/alternatives --config java
[pietermarbun@pieter-desktop]#java -version
java version "1.6.0_03"
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing)
No comments:
Post a Comment