IGOS Nusantara dan Sun Java: Perbedaan revisi

Dari IGNwiki
Langsung ke: navigasi, cari

Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /var/www/html/igos-nusantara-web/wiki/includes/diff/DairikiDiff.php on line 438
Baris 18: Baris 18:
 
=== 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/jdk1.6.0_18/bin/jre/java 20000
+
  # alternatives --install /usr/bin/java java /usr/java/jre1.6.0_18/bin/java 20000
  alternatives --install /usr/bin/javaws javaws /usr/java/jdk1.6.0_18/bin/jre/javaws 20000
+
  # alternatives --install /usr/bin/javaws javaws /usr/java/jre1.6.0_18/bin/javaws 20000
  alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so libjavaplugin.so /usr/java/jdk1.6.0_18/jre/lib/i386/libnpjp2.so 20000
+
  # alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so libjavaplugin.so /usr/java/jre1.6.0_18/bin/lib/i386/libnpjp2.so 20000
 +
 
 +
/usr/java/jre1.6.0_18/bin
  
 
== Pasang Sun JDK ==
 
== Pasang Sun JDK ==
Baris 32: Baris 34:
 
=== Ubah ke Sun JDK ===
 
=== Ubah ke Sun JDK ===
 
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/jdk1.6.0_18/bin/jre/java 20000
+
  # alternatives --install /usr/bin/java java /usr/java/jdk1.6.0_18/bin/jre/java 20000
  alternatives --install /usr/bin/javaws javaws /usr/java/jdk1.6.0_18/bin/jre/javaws 20000
+
  # alternatives --install /usr/bin/javaws javaws /usr/java/jdk1.6.0_18/bin/jre/javaws 20000
  alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so libjavaplugin.so /usr/java/jdk1.6.0_18/jre/lib/i386/libnpjp2.so 20000
+
  # alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so libjavaplugin.so /usr/java/jdk1.6.0_18/jre/lib/i386/libnpjp2.so 20000
Jika memasang JDK, sesuaikan javac
+
  # alternatives --install /usr/bin/javac javac /usr/java/jdk1.6.0_18/bin/javac 20000
  alternatives --install /usr/bin/javac javac /usr/java/jdk1.6.0_18/bin/javac 20000
+
  
 
== Konfigurasi Firefox ==
 
== Konfigurasi Firefox ==

Revisi per 22 Februari 2010 09.39

Beberapa aplikasi berbasis web yang memakai Java tidak dapat jalan jika memakai OpenJDK, sehingga harus memasang Sun Java JDK atau JRE.

Unduh JDK atau JRE

Unduh Sun Java JDK atau JRE versi 6 Update 18. dari http://java.sun.com/javase/downloads/index.jsp

Unduh berkas rpm.bin

  • jre-6u18-linux-i586-rpm.bin ukuran 20.505.673 byte
  • jdk-6u18-linux-i586-rpm.bin ukuran 80.314.190 byte

Pasang Sun JRE

Misal berkas disimpan pada direktori /tmp

# cd /tmp
# chmod 755 jre-6u18-linux-i586-rpm.bin
# ls -l jre*
  -rwxr-xr-x  1 jr   jr    20505673 Des 22 00:23 jre-6u18-linux-i586-rpm.bin
# ./jre-6u18-linux-i586-rpm.bin

Ubah ke Sun JRE

Jika sebelumnya telah memasang OpenJDK, maka sistem harus diubah agar memakai Sun JDK, lakukan:

# alternatives --install /usr/bin/java java /usr/java/jre1.6.0_18/bin/java 20000
# alternatives --install /usr/bin/javaws javaws /usr/java/jre1.6.0_18/bin/javaws 20000
# alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so libjavaplugin.so /usr/java/jre1.6.0_18/bin/lib/i386/libnpjp2.so 20000

/usr/java/jre1.6.0_18/bin

Pasang Sun JDK

Misal berkas disimpan pada direktori /tmp

# cd /tmp
# chmod +x jdk-6u18-linux-i586-rpm.bin 
# ls -l jdk*
  -rwx--x--x 1 jr jr 80314190 Des 22 00:23 jdk-6u18-linux-i586-rpm.bin
# ./jdk-6u18-linux-i586-rpm.bin

Ubah ke Sun JDK

Jika sebelumnya telah memasang OpenJDK, maka sistem harus diubah agar memakai Sun JDK, lakukan:

# alternatives --install /usr/bin/java java /usr/java/jdk1.6.0_18/bin/jre/java 20000
# alternatives --install /usr/bin/javaws javaws /usr/java/jdk1.6.0_18/bin/jre/javaws 20000
# alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so libjavaplugin.so /usr/java/jdk1.6.0_18/jre/lib/i386/libnpjp2.so 20000
# alternatives --install /usr/bin/javac javac /usr/java/jdk1.6.0_18/bin/javac 20000

Konfigurasi Firefox

Konfigurasi Google Chrome

# mkdir /opt/google/chrome/plugins
# cd /opt/google/chrome/plugins
# ln -s /usr/local/jre1.6.0_18/lib/i386/libnpjp2.so .

atau:

# ln -s /usr/java/jre1.6.0_18/lib/i386/libnpjp2.so /opt/google/chrome/plugins/
$ google-chrome --enable-plugins %U 

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 ...

Uji coba


Sumber:

Java Runtime Environment (JRE) adalah

JRE untuk beragam sistem operasi ada di http://www.java.com/en/download/manual.jsp

JRE versi rpm ada di http://javadl.sun.com/webapps/download/AutoDL?BundleId=37390 http://java.sun.com/javase/downloads/index.jsp