Install Jdk

Aplikasi-aplikasi diubuntu: • Aplikasi Grafis •
Aplikasi Internet •
Aplikasi Office •
Aplikasi Sound & Video •
Aplikasi Programming
Post Reply
User avatar
sudirman

Install Jdk

Post 29 Mar 2016, 13:49

Folder instal saya di ~/usr/lib/jvm/jdk1.7.0_21
lalu saya gunakan perintah :
# sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.7.0_21/bin/java" 1
# sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.7.0_21/bin/javac" 1
# sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/jdk1.7.0_21/bin/javaws" 1

Namun ketika saya cek menggunakan "javac" atau "java -version" sistem memunculkan ini :
No such file or directory.


User avatar
siprof

Post 31 Mar 2016, 09:39

coba ketik

Code: Select all

sudo ldconfig


User avatar
septian19
Contact:

Post 08 Jun 2016, 14:18

sudirman wrote:Folder instal saya di ~/usr/lib/jvm/jdk1.7.0_21
lalu saya gunakan perintah :
# sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.7.0_21/bin/java" 1
# sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.7.0_21/bin/javac" 1
# sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/jdk1.7.0_21/bin/javaws" 1

Namun ketika saya cek menggunakan "javac" atau "java -version" sistem memunculkan ini :
No such file or directory.
Coba install dari PPA WebUpd8:

Code: Select all

sudo add-apt-repository ppa:webupd8team/java
sudo apt update
Untuk install JDK8:

Code: Select all

sudo apt install oracle-java8-installer oracle-java8-set-default
Untuk install JDK7:

Code: Select all

sudo apt install oracle-java7-installer oracle-java7-set-default
Semoga bisa membantu.


Post Reply

Who is online

Users browsing this forum: No registered users and 48 guests