go to  ForumEasy.com   
JavaPro
Home » Archive » Message


[Email To Friend][View in Live Context][prev topic « prev post | next post » next topic]
  Install the Oracle JDK
 
Subject: Install the Oracle JDK
Author: Linux
In response to: Install the Default JDK
Posted on: 10/20/2017 12:11:43 AM

First, add Oracle's PPA, then update your package repository

$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update


Then specify the version you want to install

JDK 8
$ sudo apt-get install oracle-java8-installer


or JDK 9

$ sudo apt-get install oracle-java9-installer


http://download.oracle.com/otn-pub/java/jdk/8u144-b01/090f390dda5b47b9b721c7dfaa008135/
jdk-8u144-linux-x64.tar.gz?AuthParam=1508369709_cd8d89c9ea21969593c7114b6684b14b
Connecting to download.oracle.com (download.oracle.com)|23.72.38.162|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2017-10-18 16:33:09 ERROR 404: Not Found.

download failed
Oracle JDK 8 is NOT installed.
dpkg: error processing package oracle-java8-installer (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 oracle-java8-installer
E: Sub-process /usr/bin/dpkg returned an error code (1)


That's not right which means the auto process (apt-get install) is broken. We have to go the manual way.


 

> On 10/20/2017 12:08:44 AM Linux wrote:


$ sudo apt-get update
$ sudo apt-get install default-jdk


Where does it locate?
$ which java
/usr/bin/java


Which version is installed?
$ java -version
openjdk version "1.8.0_131"
OpenJDK Runtime Environment (build 1.8.0_131-8u131-b11-2ubuntu1.16.04.3-b11)
OpenJDK 64-Bit Server VM (build 25.131-b11, mixed mode)





References:

 


 
Powered by ForumEasy © 2002-2022, All Rights Reserved. | Privacy Policy | Terms of Use
 
Get your own forum today. It's easy and free.