Home Games How to install Java 10/11/12/13 in Debian via repository

bannerebay

How to install Java 10/11/12/13 in Debian via repository

by ace
How to install Java 10/11/12/13 in Debian via repository

If you need to use Oracle Java in Debian, and want to use one of the latest versions, to have maximum compatibility (such as internet banking, for example), here’s how to install Java 10/11/12/13 in Debian via repository.

Oracle Java is the Java version of Oracle, and also the result of a great effort of several contributors.

How to install Java 10 in Debian 8 and 9 via repository

Unfortunately, due to its licensing, this software is not installed by default in Debian and its derivatives. A basic problem, which can be revolving with the instructions in this tutorial.

The first stable version of Oracle Java 10 was released in March 2018. Java 10 has been released with many new features and security updates. And this tutorial will help you install Java 10 on Debian 9/8 systems using a repository. Check!

How to install Java 10/11/12/13 in Debian via repository

To install Java 10/11/12/13 in Debian and still be able to automatically receive future updates from it, you must do the following:

Step one. Open a terminal;
Step two. Add the program repository with this command;

sudo sh -c “echo ‘deb http://ppa.launchpad.net/linuxuprising/java/ubuntu bionic main’ >> /etc/apt/sources.list” sudo sh -c “echo ‘deb-src http://ppa.launchpad.net/linuxuprising/java/ubuntu bionic main’ >> /etc/apt/sources.list”

Step three. Download the program repository key with the command:

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

Step four. Update the package manager with the command:

sudo apt-get update

Step five. Now use the command below to install the program. The installer will request acceptance of Oracle’s terms to continue installing Java in Debian. Accept the terms and complete the configuration;

sudo apt-get install oracle-java10-installer

Or

sudo apt-get install oracle-java11-installer

Or

sudo apt-get install oracle-java12-installer

Or

sudo apt-get install oracle-java13-installer

Step six. Finally, you have successfully installed Oracle Java on your Debian system. Use the following command to check the installed version of Java on your system.

java -version

Step seven. The repository also provides a package to define environment variables. Install this package using the following command.

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

Or

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

Or

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

Or

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

Checking the Java version and if the plugin is working

To find out if the plugin is working, go to the Oracle Java verification page and click the “Check Java version” button;

Uninstalling Oracle Java in Debian and derivatives

To uninstall Oracle Java in Debian and derivatives, do the following:

Step one. Open a terminal;
Step two. Uninstall the program using the commands below;

sudo apt-get removes oracle-java10-installer –auto-remove

Java on Linux

For more information about Java on Linux, visit this other tutorial:

Java on Linux
How to install Oracle Java on Ubuntu 18.04 LTS

What is being talked about on the blog

*…

Related Articles

Leave a Comment

13 + two =

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More