Install Jdk

Aplikasi-aplikasi diubuntu: • Aplikasi Grafis •
Aplikasi Internet •
Aplikasi Office •
Aplikasi Sound & Video •
Aplikasi Programming
User avatar
sudirman
Posts: 1
Joined: 20 Mar 2016, 17:42

Install Jdk

Postby sudirman » 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
Posts: 5
Joined: 29 Mar 2016, 11:24

Re: Install Jdk

Postby siprof » 31 Mar 2016, 09:39

coba ketik

Code: Select all

sudo ldconfig
User avatar
septian19
Posts: 4
Joined: 08 Jun 2016, 13:36
Location: Bandung, Jawa Barat
Contact:

Re: Install Jdk

Postby septian19 » 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.

Return to “Aplikasi Ubuntu”

Who is online

Users browsing this forum: No registered users and 29 guests