Install Oracle Java 1.8 on Debian V10

Help with issues regarding installation of Debian

Install Oracle Java 1.8 on Debian V10

Postby guthrie » 2019-08-09 02:00

As in the title: how to Install Oracle Java 1.8 on Debian V10?

I am trying to install the Sakai LMS system, and it requires Oracle Java 1.8 (Jre8).

All of the online references I find for installing this, say that the PPAs (?) for that are now now eliminated that due to new Oracle licensing restrictions.

I did download the J8 binaries (https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html ) so now have the file: jdk-8u221-linux-x64.tar.gz, but apparently an installer is also required, and the installers lists for Debian (https://launchpad.net/%7Elinuxuprising/+archive/ubuntu/java/+packages ) only support java 11 & 12 – nothing older.

All of the tutorials I find online for J8 onto Debian now say that it is no longer supported/available.

So is there a way to install it?

Can I just unpack the .tar file, or is other installation needed?
guthrie
 
Posts: 32
Joined: 2014-05-24 04:15

Re: Install Oracle Java 1.8 on Debian V10

Postby ruwolf » 2019-08-09 04:47

JRE should be backward compatible, so Sakai should work on newer version of JRE.
(Maybe it will even work on OpenJDK-11-JRE, which is included in Debian.)
User avatar
ruwolf
 
Posts: 365
Joined: 2008-02-18 05:04
Location: Slovakia, Banovce nad Bebravou, Matice slovenskej 1260/4-7

Re: Install Oracle Java 1.8 on Debian V10

Postby L_V » 2019-08-09 07:32

guthrie wrote:As in the title: how to Install Oracle Java 1.8 on Debian V10?
So is there a way to install it?
Can I just unpack the .tar file, or is other installation needed?

I had the same requirement some time ago (for some Android builds).
You could grab Java 1.8 oustide Debian, but the easiest is to add stretch security repository, and install openjdk-8-jdk
https://packages.debian.org/stretch/openjdk-8-jdk
Code: Select all
deb http://security.debian.org/debian-security stretch/updates main

You will have both openjdk-8-jdk and openjdk-11-jdk in your system, and choose the one you want with update-java-alternatives .
• openjdk-X-jdk will install openjdk-X-jre openjdk-X-jdk-headless

Code: Select all
update-java-alternatives -l
update-java-alternatives -s /usr/lib/jvm/java-1.8.0-openjdk-amd64

update-alternatives --config java
update-alternatives --config javac

ls -l /etc/alternatives/java*

java -version
L_V
 
Posts: 1036
Joined: 2007-03-19 09:04


Return to Installation

Who is online

Users browsing this forum: eveil and 8 guests

fashionable