IGOS Nusantara dan Sun Java: Perbedaan revisi
Dari IGNwiki
(→Uji coba) |
|||
Baris 1: | Baris 1: | ||
− | Beberapa aplikasi berbasis web yang memakai Java tidak dapat jalan jika memakai OpenJDK, sehingga harus memasang Sun | + | Beberapa aplikasi berbasis web yang memakai Java tidak dapat jalan jika memakai OpenJDK, sehingga harus memasang Sun JDK atau JRE. |
== Unduh Sun JDK atau JRE == | == Unduh Sun JDK atau JRE == | ||
− | Unduh Sun | + | Unduh Sun JDK atau JRE versi 7 dari http://java.sun.com/javase/downloads/index.jsp |
− | Unduh berkas rpm | + | Unduh berkas rpm |
− | * jre- | + | * jre-7u10-linux-i586.rpm |
− | * jdk- | + | * jdk-7u10-linux-i586.rpm |
− | == Pasang Sun JRE == | + | == Pasang Sun JDK atau JRE == |
− | + | Pasang salah satu: | |
− | # | + | # rpm -ivh jre-7u10-linux-i586.rpm |
− | + | atau | |
− | # | + | # rpm -ivh jdk-7u10-linux-i586.rpm |
− | + | ||
− | + | ||
=== Ubah ke Sun JRE === | === Ubah ke Sun JRE === | ||
Jika sebelumnya telah memasang OpenJDK, maka sistem harus diubah agar memakai Sun JDK, lakukan: | Jika sebelumnya telah memasang OpenJDK, maka sistem harus diubah agar memakai Sun JDK, lakukan: | ||
− | # alternatives --install /usr/bin/java java /usr/java/ | + | ## java ## |
− | + | # alternatives --install /usr/bin/java java /usr/java/latest/jre/bin/java 20000 | |
− | + | ## javaws ## | |
− | # | + | # alternatives --install /usr/bin/javaws javaws /usr/java/latest/jre/bin/javaws 20000 |
− | + | ||
− | + | ## Java Browser (Mozilla) Plugin 32-bit ## | |
− | + | # alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so libjavaplugin.so /usr/java/latest/jre/lib/i386/libnpjp2.so 20000 | |
− | # | + | |
− | # | + | ## Pasang javac hanya jika memasang Java Development Kit (JDK) |
− | + | # alternatives --install /usr/bin/javac javac /usr/java/latest/bin/javac 20000 | |
− | + | # alternatives --install /usr/bin/jar jar /usr/java/latest/bin/jar 20000 | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | # | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | # alternatives --install /usr/bin/ | + | |
− | # alternatives --install /usr/bin/ | + | |
− | + | ||
=== Mengatur path ke JDK === | === Mengatur path ke JDK === | ||
# export JAVA_HOME="/usr/java/jdk1.6.0_18;" | # export JAVA_HOME="/usr/java/jdk1.6.0_18;" | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Control Panel == | == Control Panel == | ||
Baris 95: | Baris 65: | ||
== Uji coba == | == Uji coba == | ||
* http://www.java.com/en/download/help/testvm.xml | * http://www.java.com/en/download/help/testvm.xml | ||
− | |||
− | |||
* http://www.javatester.org/enabled.html | * http://www.javatester.org/enabled.html | ||
* http://www.javatester.org/version.html | * http://www.javatester.org/version.html | ||
Baris 102: | Baris 70: | ||
Sumber: | Sumber: | ||
* http://www.if-not-true-then-false.com/2010/install-sun-oracle-java-jdk-jre-7-on-fedora-centos-red-hat-rhel/ | * http://www.if-not-true-then-false.com/2010/install-sun-oracle-java-jdk-jre-7-on-fedora-centos-red-hat-rhel/ | ||
− | |||
* http://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox | * http://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox | ||
* http://java.sun.com/javase/6/webnotes/install/jre/manual-plugin-install-linux.html | * http://java.sun.com/javase/6/webnotes/install/jre/manual-plugin-install-linux.html | ||
* http://www.jonathanpritchard.com/blog/2010/01/mozilla-firefox-3-6-linux-review/ | * http://www.jonathanpritchard.com/blog/2010/01/mozilla-firefox-3-6-linux-review/ |
Revisi per 27 Desember 2012 07.19
Beberapa aplikasi berbasis web yang memakai Java tidak dapat jalan jika memakai OpenJDK, sehingga harus memasang Sun JDK atau JRE.
Daftar isi
Unduh Sun JDK atau JRE
Unduh Sun JDK atau JRE versi 7 dari http://java.sun.com/javase/downloads/index.jsp
Unduh berkas rpm
- jre-7u10-linux-i586.rpm
- jdk-7u10-linux-i586.rpm
Pasang Sun JDK atau JRE
Pasang salah satu:
# rpm -ivh jre-7u10-linux-i586.rpm
atau
# rpm -ivh jdk-7u10-linux-i586.rpm
Ubah ke Sun JRE
Jika sebelumnya telah memasang OpenJDK, maka sistem harus diubah agar memakai Sun JDK, lakukan:
## java ## # alternatives --install /usr/bin/java java /usr/java/latest/jre/bin/java 20000
## javaws ## # alternatives --install /usr/bin/javaws javaws /usr/java/latest/jre/bin/javaws 20000 ## Java Browser (Mozilla) Plugin 32-bit ## # alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so libjavaplugin.so /usr/java/latest/jre/lib/i386/libnpjp2.so 20000 ## Pasang javac hanya jika memasang Java Development Kit (JDK) # alternatives --install /usr/bin/javac javac /usr/java/latest/bin/javac 20000 # alternatives --install /usr/bin/jar jar /usr/java/latest/bin/jar 20000
Mengatur path ke JDK
# export JAVA_HOME="/usr/java/jdk1.6.0_18;"
Control Panel
# /usr/java/jre1.6.0_18/bin/ControlPanel
Select the Java Tab Click View... Click Find... Click Next... Select /opt/java/jre1.6.0_18/ Click Next... Click Finsh... deselect the others JREs Click OK... Click Apply... Click OK ...
Tukar antara OpenJDK <> Sun Java
Jalankan:
# 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/java/jdk1.6.0_18/bin/jre/java 3 /usr/java/jdk1.6.0_18/bin/java
Enter untuk mempertahankan pilihan[+] saat ini, atau ketik nomer yang dipilih: ...
Pilih versi Java yang akan dipakai, lalu periksa hasilnya:
# java -version
Uji coba
- http://www.java.com/en/download/help/testvm.xml
- http://www.javatester.org/enabled.html
- http://www.javatester.org/version.html
Sumber:
- http://www.if-not-true-then-false.com/2010/install-sun-oracle-java-jdk-jre-7-on-fedora-centos-red-hat-rhel/
- http://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox
- http://java.sun.com/javase/6/webnotes/install/jre/manual-plugin-install-linux.html
- http://www.jonathanpritchard.com/blog/2010/01/mozilla-firefox-3-6-linux-review/