set JAVA HOME ubuntu 12.04 | java php laravel linux mysql sql bootstrap html css query java php laravel linux mysql sql bootstrap html css query: set JAVA HOME ubuntu 12.04

Thursday, July 12, 2012

set JAVA HOME ubuntu 12.04

Cek versi Java
[sourcecode language="bash"]java -version[/sourcecode]



Buka terminal { CTRL + ALT + T }
[sourcecode language="bash"]nano .bashrc[/sourcecode]


Tambahkan 2 baris command di bawah ini pada akhir file .bashrc

[sourcecode language="bash"]
export JAVA_HOME=/usr/lib/jvm/java-7-oracle
export PATH=$PATH:$JAVA_HOME/bin
[/sourcecode]





q> Buka terminal baru
q> Cek java_home
[sourcecode language="bash"]echo $JAVA_HOME[/sourcecode]



q>Cek Path
[sourcecode language="bash"]echo $PATH[/sourcecode]





Selamat ber-Java

No comments:

Post a Comment

saifiahmada.com adalah blog belajar programming Indonesia, membahas lengkap materi bahasa pemrograman: code HTML, CSS, Bootstrap, Desain, PHP, MySQL, coding Java, Query, SQL, dan dunia linux