Instalasi Java JDK Manual pada OpenSolaris

November 18, 2009

Kali ini sy coba instal JDK di OpenSolaris. Langsung aja…:mrgreen:

  • Download JDK bwt OpenSolaris dimari. Pilih yg JDK buat Solaris/OpenSolaris (77MB).
  • Baca2 Dokumentasi Online ttg instalasinya disini..
  • Mulai kita coba!!😛
  • Pertama, kita tahu bahwa default instalasi java yang sudah ada di OpenSolaris berada di /usr/jdk/jdk1.6.0_13
    Iseng2,cek isi direktorinya apa aja:

    osol@opensolaris:~$ cd /usr/jdk/;ls -lia
    total 7
    26432 drwxr-xr-x 3 root bin 5 2009-11-13 11:31 .
    655 drwxr-xr-x 31 root sys 45 2009-11-13 12:35 ..
    26433 drwxr-xr-x 3 root bin 3 2009-11-13 11:31 instances
    26435 lrwxrwxrwx 1 root root 18 2009-11-13 11:31 jdk1.6.0_13 -> instances/jdk1.6.0
    26436 lrwxrwxrwx 1 root root 11 2009-11-13 11:31 latest -> jdk1.6.0_13

    Lalu saya cb ganti mode jd root:
    osol@opensolaris:/usr/jdk$ pfexec su (enter)
    osol@opensolaris:/usr/jdk#

    ..dah jadi root:mrgreen:

  • Kopikan file JDK hasil download-an, yakni jdk-6u17-solaris-i586.sh, ke /usr/jdk. Misal file hasil downloadan udah tak taruh di /export/home/osol/bin/000-archive/.
    osol@opensolaris:~/bin/000-archives# cp jdk-6u17-solaris-i586.sh /usr/jdk/

  • Pindah ke /usr/jdk

    osol@opensolaris:~/bin/000-archives# cd /usr/jdk/

  • Pastikan file udah di-chmod +x biar bisa di-exe😎

    osol@opensolaris:/usr/jdk# chmod ug+x jdk-6u17-solaris-i586.sh

  • Klo sudah semua, tinggal dijalankan aja.
    osol@opensolaris:/usr/jdk# ./jdk-6u17-solaris-i586.sh


    next..next..

    ketik “yes”

    Done!!:mrgreen:

  • Setelah berhasil terinstall(terekstrak(?)), selanjutnya adalah set PATH!😎
    Saya mengikuti petunjuk Om SPRG NIGHT di http://sprg.org/night/?p=102

    osol@opensolaris:/usr/jdk# gedit /etc/profile

    tambahkan+masukkan baris2 berikut:

    export JAVA_HOME=/usr/jdk/jdk1.6.0_17
    export PATH=:$JAVA_HOME/bin:$JAVA_HOME/jre/bin

    (save)
    trus, tambahkan hal yang sama di .profile dari user yang sedang jalan.

    osol@opensolaris:~$ cd ~;gedit .profile

    export JAVA_HOME=/usr/jdk/jdk1.6.0_17
    export PATH=:$JAVA_HOME/bin:$JAVA_HOME/jre/bin

    (save)

    oke…

  • Logout
  • Login
  • cek javac:
    osol@opensolaris:~$ javac -version
    javac 1.6.0_17

    Demikian, mungkin ada cara yg lain(?)

    ref:

  • http://sprg.org/night/?p=102
  • http://weblogs.java.net/blog/2008/06/19/opensolaris-200805-installing-netbeans-61
  • http://w3hol.wordpress.com/2009/02/11/java-se-dan-netbeans-di-opensolaris/
  • http://java.sun.com/javase/6/webnotes/install/jdk/install-solaris.html
  • http://www.linuxquestions.org/questions/solaris-opensolaris-20/just-saying-hi-how-to-set-path-in-solaris-permanently-502662/
  • Leave a Reply

    Fill in your details below or click an icon to log in:

    WordPress.com Logo

    You are commenting using your WordPress.com account. Log Out / Change )

    Twitter picture

    You are commenting using your Twitter account. Log Out / Change )

    Facebook photo

    You are commenting using your Facebook account. Log Out / Change )

    Google+ photo

    You are commenting using your Google+ account. Log Out / Change )

    Connecting to %s

    %d bloggers like this: