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
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
No comments:
Post a Comment