Skip to content

Install dan setting path JDK linux

September 13, 2009

Hi All..

udah taw install JDK di linux? udah taw ya udah…. ga usah baca postingan gw 😛

heuheu bagi yang belum taw,.. nih gw kasih cara install jdk di linux.

download latest JDK nya dulu ya DISINI ntar kalian dapet file jdk-version.bin

taruh di tempat applikasi akan diinstall misal di /opt/…

ekstrak dan install jdk-version.bin tersebut

# cd <jdk dir>

# sudo sh jdk-version.bin

zzz zzz zzz.. kalo udah kita harus setting pathnya terlebih dahulu

caranya ketik di konsole :

# export JAVA_HOME=/dir_jdk_yang_tadi
# export PATH=${JAVA_HOME}/bin:${PATH}

kemudian untuk mengecek apakah jdk udah ke-include pathnya

# java -version

ntar bakalan keluar java versi berapa yang udah keinstall

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)

hmm kalo udah buka /etc/bash_profile dan tambahin export pathnya

# sudo gedit etc/profile

masukan

# export JAVA_HOME=/dir_jdk_yang_tadi
# export PATH=${JAVA_HOME}/bin:${PATH}

semoga membantu gan

Advertisements

From → Ubuntu

Leave a Comment

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: