Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[Shell] Install Java JDK 1.8 on Debian, Kali linux
sudo su -
cat >/etc/apt/sources.list.d/webupd8team-java.list<< EOF
deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main
deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main
EOF
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
apt-get update
apt-get install oracle-java8-installer
java -version
@ylcncosar

This comment has been minimized.

Copy link

commented Jan 13, 2018

thx

@r1cs3c

This comment has been minimized.

Copy link

commented Feb 23, 2018

Thanks, man only instructions that work!

@SawHtet93

This comment has been minimized.

Copy link

commented Jul 4, 2018

thanks

@AzyCrw4282

This comment has been minimized.

Copy link

commented Aug 6, 2018

Thanks man

@nohope91

This comment has been minimized.

Copy link

commented Jan 3, 2019

BIG THANKS FROM THE HELL T_T
GODDAMN IT ,. OHH FINALLY THAT WORKED !!!!!!
YEAAAAAAAAAAAAAAAAAH ^_^

@issamsolid

This comment has been minimized.

Copy link

commented Mar 16, 2019

thank you so so so so soso much u save my day

@williesmithy420

This comment has been minimized.

Copy link

commented Jul 17, 2019

Iam new to kali linux i copied the code from above and sommit happened but when i go into Applications theres nowt about java
iam trying to install java and then hopefully Netbeans please help

@Sanix-Darker

This comment has been minimized.

Copy link
Owner Author

commented Jul 17, 2019

@williesmithy420 when you followed instructions and then hit in your CLI :
java -version
What did you get ?

@emilyanncr

This comment has been minimized.

Copy link

commented Aug 27, 2019

E: The repository 'http://ppa.launchpad.net/webupd8team/java/ubuntu trusty InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.

Sigh....

@sproutecks2125

This comment has been minimized.

Copy link

commented Sep 22, 2019

@emilyanncr I received the same message:

after apt-get update

E: Repository 'http://ppa.launchpad.net/webupd8team/java/ubuntu trusty InRelease' changed its 'Label' value from 'Oracle Java (JDK) 8 Installer PPA' to 'Oracle Java (JDK) 8 Installer PPA (DISCONTINUED)'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.

Any ideas?

Trying to install Java 8 on Windows 10 - Linux Sub System (WSL). Have to have JDK8 to run Bless.

@sproutecks2125

This comment has been minimized.

Copy link

commented Sep 22, 2019

From WebUPD8 Team website:

How To Install Oracle Java 8 In Debian Via Repository [JDK8]

Author: Andrew | Posted: March 20, 2014 | Updated: April 18, 2019
The Oracle JDK License has changed for releases starting April 16, 2019.

The new Oracle Technology Network License Agreement for Oracle Java SE is substantially different from prior Oracle JDK licenses. The new license permits certain uses, such as personal use and development use, at no cost -- but other uses authorized under prior Oracle JDK licenses may no longer be available. Please review the terms carefully before downloading and using this product. An FAQ is available here.

Oracle Java downloads now require logging in to an Oracle account to download Java updates, like the latest Oracle Java 8u211 / Java SE >8u212. Because of this I cannot update the PPA with the latest Java (and the old links were broken by Oracle).

For this reason, THIS PPA IS DISCONTINUED (unless I find some way around this limitation).

So no way to do this now??

@emilyanncr

This comment has been minimized.

Copy link

commented Sep 24, 2019

oh yes I found a solution...shit..my memory's foggy on where I found the answer. I know I had to download jre-8u221-linux-x64.tar.gz and do a few other things. I'll try to find the article.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.