๐ŸŒ
Linuxize
linuxize.com โ€บ home โ€บ java โ€บ how to install java on debian 10 linux
How to Install Java on Debian 10 Linux | Linuxize
February 24, 2020 - In this tutorial, we will explain how to install Java (OpenJDK) on Debian 10 Linux.
๐ŸŒ
DigitalOcean
digitalocean.com โ€บ community โ€บ tutorials โ€บ how-to-install-java-with-apt-on-debian-10
How To Install Java with Apt on Debian 10 | DigitalOcean
July 26, 2019 - You can set this up by following our Debian 10 initial server setup guide. The easiest option for installing Java is to use the version packaged with Debian.
Discussions

java - How to install openjdk-8-jdk on Debian 10 (Buster)? - Stack Overflow
It seems Debian does not support openjdk-8-jdk anymore due to a security issue. What is the easiest way to install openjdk-8-jdk for Debian 10 (Buster)? More on stackoverflow.com
๐ŸŒ stackoverflow.com
linux - Install JDK 9 on debian 10 - Unix & Linux Stack Exchange
For specific reasons I need to install JDK 9 on my Debian 10. But it seems like mission impossible. Can anyone share a tutorial ? ... Java 9 is out of support and has been deprecated, but you probably knew that already. More on unix.stackexchange.com
๐ŸŒ unix.stackexchange.com
February 14, 2021
Installing openjdk/jre-8 on Debian 10
There's AdoptOpenJDK More on reddit.com
๐ŸŒ r/debian
24
6
August 18, 2020
Error installing Java 8 on Debian 10

Make a chroot with Debian 9.

More on reddit.com
๐ŸŒ r/debian
8
0
January 29, 2021
๐ŸŒ
HowtoForge
howtoforge.com โ€บ home โ€บ how to install java (jdk and jre) on debian 10
How to Install Java (JDK and JRE) on Debian 10
In this tutorial, we will show you how to install Java on the Debian 10 (Buster). We will install both the JDK (Java Development Kit) and the JRE (Java Runtime Environment on a Debian server.
๐ŸŒ
TecAdmin
tecadmin.net โ€บ how-to-install-java-on-debian-10-buster
How To Install Java on Debian 10 (Buster) โ€“ TecAdmin
April 26, 2025 - apt-cache search command to search available java version for your Ubuntu system. ... Use the below command to install OpenJDK on your Debian 10 Buster systems using the package manager from the default repository.
๐ŸŒ
LinuxBuz
linuxbuz.com โ€บ linuxhowto โ€บ install-java-debian-10
How to Install Java on Debian 10 - LinuxBuz
August 26, 2024 - So you will need to create an Oracle account and download your desired version of Java from the Oracle website. First, Log in and visit the Oracle Downloads page and locate your desired version of Java.
๐ŸŒ
Linux Hint
linuxhint.com โ€บ install_jdk_debian_10
Installing JDK on Debian 10 โ€“ Linux Hint
August 25, 2023 - Java Development Kit or JDK in ... and run Java applications. There are two variants of JDK, a) OpenJDK and b) Oracle JDK. Oracle JDK is licensed under Oracle. OpenJDK is an open source implementation of JDK. Their license is very different. In this article, I am going to show you how to install OpenJDK and OracleJDK on Debian 10 ...
๐ŸŒ
LinuxVox
linuxvox.com โ€บ blog โ€บ how-to-install-java-on-debian-10-linux
How to Install Java on Debian 10 Linux โ€” linuxvox.com
This guide will walk you through **detailed steps** to install Java on Debian 10, covering both open-source (OpenJDK) and proprietary (Oracle JDK) implementations. Weโ€™ll also cover verifying installations, setting default Java versions, and uninstalling Java if needed.
Top answer
1 of 12
158

Alternatively, you can use adoptopenjdk repository:

wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | sudo apt-key add -

sudo add-apt-repository --yes https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/

sudo apt-get update && sudo apt-get install adoptopenjdk-8-hotspot

https://adoptopenjdk.net/installation.html

2 of 12
80

WARNING: this answer suggest unsupported and dangerous mixing of Debian releases. Follow the advice on your own risk, as it can break the system on upgrades, as explained in http://wiki.debian.org/DontBreakDebian#Don.27t_make_a_FrankenDebian

Package mirror search steps:

  1. In the Search package directories search for openjdk-8-jdk. You can see two results:

    • stretch (oldstable) (java): OpenJDK Development Kit (JDK)
    • sid (unstable) (java): OpenJDK Development Kit (JDK)
  2. Choose stretch repository

  3. Scroll to the Download openjdk-8-jdk section and choose your architecture. For example amd64

  4. Now you can see mirrors list and instructions how to install the package via apt:

    You should be able to use any of the listed mirrors by adding a line to your /etc/apt/sources.list like this:

    deb http://security.debian.org/debian-security stretch/updates main

Installation steps:

  1. Install software source manager

    apt-get update
    apt-get install software-properties-common
    
  2. Add mirror with openjdk-8-jdk

    apt-add-repository 'deb http://security.debian.org/debian-security stretch/updates main'
    apt-get update
    
  3. Install openjdk 8

    apt-get install openjdk-8-jdk
    

Note: You can use steps above to find an official Debian mirror with any other package you want to install

Find elsewhere
๐ŸŒ
Debian
wiki.debian.org โ€บ Java
Java - Debian Wiki
Each of them have a development environment (JDK) and a runtime (known as JRE, or Java Virtual Machines JVM). Here's a list of Java environment. Just run aptitude search "?provides(java-runtime)" on your system to list available packages). The default JRE/JDK installed in Debian isn't the same ...
๐ŸŒ
RoseHosting
rosehosting.com โ€บ home โ€บ how to install java 10 on debian 9
How to Install Java 10 on Debian 9 | RoseHosting
December 9, 2022 - By manually installing the OpenJDK yourself, you ensure that Java 10 will be the version that is installed. Go to the download page for the OpenJDK software package, and right click on the tar.gz link found to the right of the โ€œLinuxโ€ option.
๐ŸŒ
Linode
linode.com โ€บ docs โ€บ guides โ€บ how-to-install-openjdk-on-debian-10
How To Install Java Development Kit 11 on Debian 10 | Linode Docs
March 25, 2020 - Software written in Java can be compiled and run on any system, making Java a versatile platform that can be used to create anything from software to basic web applications. This guide will show you how to install the Open Java Development Kit (OpenJDK) 11 on Debian 10.
๐ŸŒ
Myvestacp
forum.myvestacp.com โ€บ board index โ€บ knowledge base โ€บ linux tutorials โ€บ linux services
How to install Java on Debian - myVesta
apt install -y default-jre default-jdk With these two commands, you have successfully installed Java on your Debian system along with myVesta CP.
๐ŸŒ
ITzGeek
itzgeek.com โ€บ home โ€บ how to's โ€บ linux โ€บ debian โ€บ how to install oracle java jdk 12 / 11 / 8 on debian 10 / debian 9
How To Install Oracle Java JDK 12 / 11 / 8 on Debian 10 / Debian 9
July 24, 2019 - Change the default Java version by typing number under Selection column and then press enter. Install Oracle JDK on Debian 10 โ€“ Set Default Java Version
๐ŸŒ
Stack Exchange
unix.stackexchange.com โ€บ questions โ€บ 634399 โ€บ install-jdk-9-on-debian-10
linux - Install JDK 9 on debian 10 - Unix & Linux Stack Exchange
February 14, 2021 - mkdir /usr/local/java64 cd /usr/local/java64 tar xvf ~dakado/jdk-9.0.4_linux-x64_bin.tar.gz #or wherever you placed the downloaded file
๐ŸŒ
ComputingForGeeks
computingforgeeks.com โ€บ home โ€บ install java jdk 21 or openjdk 21 on debian 12/11/10
Install Java JDK 21 or OpenJDK 21 on Debian 12/11/10 [Guide]
March 12, 2024 - Step-by-step guide to java JDK 21 or OpenJDK 21 on Debian 12/11/10. Includes commands, verification, and troubleshooting.
๐ŸŒ
Pi My Life Up
pimylifeup.com โ€บ home โ€บ installing newer versions of java on debian systems
Installing Newer Versions of Java on Debian Systems - Pi My Life Up
January 21, 2026 - In this quick guide, we will show you how to easily install the latest versions of Java on to your Debian based system.
๐ŸŒ
Webhi
webhi.com โ€บ home โ€บ how to install java with โ€œapt-getโ€ on ubuntu / debian
How to install Java with "apt-get" on Ubuntu / Debian - Tutorial & Documentation
June 26, 2023 - Learn how to install Java on Ubuntu 18.04/20.04/22.04 using the apt-get package manager. Follow the step-by-step guide to install Java, set up environment variables, and test your installation.
๐ŸŒ
Linuxize
linuxize.com โ€บ home โ€บ java โ€บ how to install java on debian 9
How to Install Java on Debian 9 | Linuxize
February 24, 2020 - In this tutorial, we will walk through installing Java on Debian 9. Java is one of the most popular programming languages used to build different kinds of โ€ฆ
๐ŸŒ
Debian
wiki.debian.org โ€บ JavaPackage
JavaPackage - Debian Wiki
June 12, 2017 - Use java-package to create a Debian package, for example: ... By default the DebianAlternatives will automatically install the best version of Java as the default version. If the symlinks have been manually set they will be preserved by the tools. The update-alternatives tools try hard to respect ...