0

Instalasi Java Pada Ubuntu

Copy file jdk-6u16-linux-i586_2.bin ke dalam file system ubuntu pada folder …/usr/…, gunakan terminal dengan perintah

sudo cp jdk-6u16-linux-i586_2.bin /usr /share =>  ini untuk menyalin file jdk ke folder usr

lalu pindah ke directory /usr/share dengan terminal seperti berikut ini =>

sudo su

masukkan psw :

/home/agungwiseso# cd /usr.share

/usr/share#

maka lanjutkan dengan menginstall

sh jdk-6u16-linux-i586_2.bin => ini untuk ekstrak & install, license agreement = yes

Setelah “Done”, maka akan muncul directory baru bernama jdk1.6.0_16 pada directory /usr/share/jdk1/6/0_16. Kemudian buka file bash.bashrc pada folder etc dengan perintah

sudo gedit /etc/bash.bashrc,  maka akan muncul file bash.bashrc dan tambahkan

JAVA_HOME=/usr/share/jdk1.6.0_16
export JAVA_HOME
PATH=$JAVA_HOME/bin:$PATH
export PATH

pada bagian paling bawah file kemudian save & close gedit & terminal .

Untuk mengetest buka terminal dan ketikkan java -version

agungwiseso@agungwiseso:~$ java -version

java version “1.6.0_16″

Java(TM) SE Runtime Environment (build 1.6.0_16-b01)

Java HotSpot(TM) Client VM (build 14.2-b01, mixed mode, sharing)

agungwiseso@agungwiseso:~$

This entry was posted in Linux, Open Source, Teknologi and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>