Webupd8team java ppa repository

How to Install Java 8 on Debian 10/9/8 via PPA

How do I Install Java 8 on Debian?. The first Oracle Java 8 stable version was released on Mar 18, 2014, and available to download and install. Oracle Java PPA for Debian systems is being maintained by Webupd8 Team. JAVA 8 is released with many of new features and security updates. This tutorial will help you to Install Java 8 on Debian 9/8/7 systems using PPA and apt-get command.

The Ubuntu and LinuxMint users use below link to install Java 8 on their system.

IMPORTANT: Java 8 is no longer available to download publically. You can use below link to install Java 11.

Step 1 – Add Java 8 PPA

The webupd8 team has built a Java installer package for Debian systems. You need to add that PPA repository to your system for installing Java 8 on Debian.

Create a new Apt configuration file /etc/apt/sources.list.d/java-8-debian.list, and edit in text editor.

sudo vim /etc/apt/sources.list.d/java-8-debian.list

and add following content in it.

deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main

Now import GPG key on your system for validating packages before installing them.

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886

Step 2 – Install Java 8 on Debian

You are all set to start Java installation on Debian. Run the following commands to update apt-cache and then install Java 8 on Debian system using the apt-get package manager.

sudo apt-get update sudo apt-get install oracle-java8-installer

The installer will prompt for accept Oracle terms in order to continue Java installation on Debian. Accept the terms and complete setup.

Step 3 – Verify Java Installation

Finally, you have successfully installed Oracle Java on your Debian system. Let’s use the following command to verify installed version of Java on your system.

java -version java version "1.8.0_201" Java(TM) SE Runtime Environment (build 1.8.0_201-b09) Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode)

Step 4 – Setup Java Environment

The Webupd8 PPA repository also provides a package to set environment variables, Install this package using the following command.

sudo apt-get install oracle-java8-set-default

Java Program to Reverse a String

Java Program to Reverse a Number

Java Program to Check Prime Number

27 Comments

umm… W: GPG error: http://ppa.launchpad.net/webupd8team/java/ubuntu trusty InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY C2518248EEA14886
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. I did exactly as you said and looks like it isn’t much use?…

For all other guys wo see this. If you have debian 8/9/10. On Debian 8 and 9 you can run “apt install openjdk-8-jdk” and for Debian 10 (Buster), if you want the java 8 version add this in the sources.list file in /etc/apt: deb “http://ftp.debian.org/debian” stretch main
deb-src ” http://ftp.de.debian.org/debian” stretch main after you add these 2 lines in the sources.list file you have to update with “apt update” and after that you can run “apt install openjdk-8-jdk”. After the installation of java i recommended to delete the 2 lines from the source.list file and update again and now all would be fine

THANK YOU, I was working at this for like 5 HOURS, it took me so long to realize it was Debian 10 and not 9 but if I didn’t see this I would’ve given up THANK YOU!

seems launchpad has removed the orcale java 8 https://launchpad.net/~webupd8team/+archive/ubuntu/java How can I install the orcale java 8 on debian? any ideas is there any other repositories?

Under my current OS release, the command to update the key store is sudo apt-key adv –keyserver hkp://keyserver.ubuntu.com:80 –recv-keys EEA14886

I am running Raspian Stretch Lite and when I attempt to hit the import of the key it fails with: “[email protected]:~ $ sudo apt-key adv –keyserver keyserver.ubuntu.com –recv-keys EEA14886
Executing: /tmp/apt-key-gpghome.l6hy3eHIwG/gpg.1.sh –keyserver keyserver.ubuntu.com –recv-keys EEA14886
gpg: failed to start the dirmngr ‘/usr/bin/dirmngr’: No such file or directory
gpg: connecting dirmngr at ‘/tmp/apt-key-gpghome.l6hy3eHIwG/S.dirmngr’ failed: No such file or directory
gpg: keyserver receive failed: No dirmngr” I also tried instead doing the Java 9 and it fails at the key import as well. What am I doing wrong?

how can I proceed by adding the following content to it?
deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main
deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main cause it stucks there

not work can you help me?
r[email protected]:/usr/bin# sudo apt-get install oracle-java8-installer
Lettura elenco dei pacchetti… Fatto
Generazione albero delle dipendenze
Lettura informazioni sullo stato… Fatto
oracle-java8-installer è già alla versione più recente.
0 aggiornati, 0 installati, 0 da rimuovere e 0 non aggiornati.
3 non completamente installati o rimossi.
Dopo quest’operazione, verranno occupati 0 B di spazio su disco.
Continuare? [S/n] s
Configurazione di java-common (0.52)…
mkdir: impossibile creare la directory “/etc/.java/.systemPrefs”: File già esistente
dpkg: errore nell’elaborare il pacchetto java-common (–configure):
il sottoprocesso installato script di post-installation ha restituito lo stato di errore 1
dpkg: problemi con le dipendenze impediscono la configurazione di oracle-java8-installer:
oracle-java8-installer dipende da java-common (>= 0.24); comunque:
Il pacchetto java-common non è ancora configurato. dpkg: errore nell’elaborare il pacchetto oracle-java8-installer (–configure):
problemi con le dipendenze – lasciato non configurato
Configurazione di jdk1.8.0-121 (1.8.0121-1)…
Error: unpack200 – command could not be found. Please refer to the Troubleshooting section of theInstallation Instructions
on the download page.
find: “/usr/java/*”: File o directory non esistente
update-alternatives: errore: il percorso alternativo /usr/java/jdk1.8.0_121/jre/bin/java non esiste
update-alternatives: errore: il percorso alternativo /usr/java/jdk1.8.0_121/bin/javac non esiste
dpkg: errore nell’elaborare il pacchetto jdk1.8.0-121 (–configure):
il sottoprocesso installato script di post-installation ha restituito lo stato di errore 2
Si sono verificati degli errori nell’elaborazione:
java-common
oracle-java8-installer
jdk1.8.0-121
E: Sub-process /usr/bin/dpkg returned an error code (1)

Источник

Install Oracle Java 8 In Ubuntu Or Linux Mint Via PPA Repository [JDK8]

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).

Oracle Java 8 is now stable. Below you’ll find instructions on how to install it in Ubuntu / Linux Mint via a PPA repository. The PPA supports JDK8 for both 32bit and 64bit as well as ARM (ARM v6/v7 Hard Float ABI — there’s no JDK 8 ARM Soft Float ABI archive available for download on Oracle’s website).

As a reminder, the WebUpd8 Oracle Java PPA doesn’t include any Java binaries, just a script that automatically downloads and install Oracle Java 8. Everything is done automatically so you’ll get updates through the update manager for JDK8 which includes JRE8 and the Java browser plugin.

It’s also important to note that the Oracle Java 8 installer is considered in alpha and is offered without any guarantees! Use it at your own risk. If you ISP or router blocks the ports used by the Oracle Java 8 download servers, the installation may fail.

If you want to install Oracle Java 7 instead, see THIS post (PPA for all supported Ubuntu / Linux Mint versions).

Debian users will find installation instructions in the following article: How To Install Oracle Java 8 In Debian Via Repository [JDK8]

Install Oracle Java 8 (JDK8 and JRE8) in Ubuntu or Linux Mint

Oracle JDK8 installer

Oracle JDK8 installer

The installer provides Oracle Java 8 (which includes Java JDK, JRE and the Java browser plugin). However, you can’t only install Oracle JRE — the PPA only provides the full Oracle JDK8 package.

Our PPA supports Ubuntu 16.10, 16.04, 15.10, 14.04 and 12.04 as well as Linux Mint 18, 17.x and 13. Add the PPA and install Oracle Java 8 (the package provides both JDK8 and JRE8) using the following commands:

sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java8-installer

Previously, this package would increment the Java priority to make it default. The oracle-java8-installer package now sets the Java priority to 1081, and that may or may not set it as default, depending on other Java packages you may have installed (for instance, if Java 7 is also installed, Java 8 becomes default, but if Java 9 is installed, Java 8 doesn’t become default).

To make Java 8 default, you must install the «oracle-java8-set-default» package (which configures the Java environment variables and sets it as default), which I added as a «Recommended» package to «oracle-java8-installer».

In Ubuntu, recommended packages are automatically installed, so «oracle-java8-set-default» should be installed when installing «oracle-java8-installer». In Linux Mint on the other hand, recommended packages are not installed by default, so you must install this package manually if you want to set Oracle Java 8 as default.

So, if you want to set Oracle Java 8 as default, no matter what other Java versions are installed, make sure that you install the oracle-java8-set-default package (which, again, should be automatically installed with the main Oracle Java Installer package in Ubuntu, but not in Linux Mint):

sudo apt-get install oracle-java8-set-default

If you don’t want to make Oracle Java 8 default (it might still be set as default, depending on what other Java versions you may have installed), install the oracle-java8-installer with «—no-install-recommends»:

sudo apt-get install --no-install-recommends oracle-java8-installer

Note: removing the oracle-java8-set-default package does not undo all the changes (I have yet to find a way to do this properly). If you don’t want to set it as default, remove both oracle-java8-installer and oracle-java8-set-default packages, and then install oracle-java8-installer with «—no-install-recommends» (like mentioned above).


Tip: if you’re behind a firewall / router that blocks some of the redirects required to download the Oracle Java archive, you can download the JDK tar.gz archive manually and place it under /var/cache/oracle-jdk8-installer — then, installing the «oracle-java8-installer» package will use the local archive instead of trying it to download it itself.

After installing Oracle Java and the «oracle-java8-set-default» package, running «java -version» in a terminal should output something like this:

andrei@andrei-desktop:~$ java -version java version "1.8.0_111" Java(TM) SE Runtime Environment (build 1.8.0_111-b14) Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)
andrei@andrei-desktop:~$ javac -version javac 1.8.0_111

Automated installation (auto accept license)

The installer requires you to accept the Oracle license before the installation begins. This is only required once. If for some reason you need the installation to be automated, you can run the following command to automatically accept the Oracle license:

echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections

Switching between Oracle Java 9 and Java 7

You can have both Java 8 and Java 9 installed in the same time, but only one can be set as default.

To set which is default, simply install its «set-default» package: oracle-java8-set-default for Oracle Java 8, or oracle-java9-set-default for Oracle Java 9.

Update: if you’re looking for Oracle Java 11, it’s available in a different PPA. See THIS article for instructions on installing it in Ubuntu or Debian. Oracle Java 15 on Ubuntu, Linux Mint or Debian from that same APT PPA repository.

Источник

Читайте также:  Чем отличается класс от объекта java
Оцените статью