Install JDK in Ubuntu

Copy master java jdk disini memakai jdk-6u6-linux-i586.bin dimana java akan di install :

contoh: home/efran/program/ buka terminal kemudian jalankan filenya dengan perintah ./ jdk-6u6-linux-i586.bin sehingga nanti terbentuk direktori jdk1.6.0_06

buka terminal edit : vim /etc/bash.bashrc ketikkan perintah dibawah ini pada baris terakhir

export JAVA_HOME=”$HOME/Program/java/jdk1.6.0_06″

export PATH=”$PATH:$HOME/Program/java/jdk1.6.0_06/bin”

kemudian save lalu exit.

$ sudo update-alternatives --install /usr/bin/java java /home/efran/program/java/jdk1.6.0_06/bin/java 100

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