
If no then you need to add unstable repository to the sources list. Then check is this package can be installed with current configuration: apt-cache policy openjdk-8-jdk You can search the Debian packages site and find out the openjdk-8-jdk package for Debian 10 is only available from unstable (sid) repository currently.Īt first it is good to check and save current system-wide symbolic links for already installed Java SDK/JRE packages if any: ls -la /etc/alternatives | grep java > previous-java-alternatives.txt Note: You can use steps above to find an official Debian mirror with any other package you want to install Install openjdk 8 apt-get install openjdk-8-jdk Install software source manager apt-get updateĪpt-get install software-properties-commonĪdd mirror with openjdk-8-jdk apt-add-repository 'deb stretch/updates main' You should be able to use any of the listed mirrors by adding a line

#Download openjdk 8 how to
Now you can see mirrors list and instructions how to install the package via apt: Scroll to the Download openjdk-8-jdk section and choose your architecture. sid (unstable) (java): OpenJDK Development Kit (JDK).

stretch (oldstable) (java): OpenJDK Development Kit (JDK).In the Search package directories search for openjdk-8-jdk. Follow the advice on your own risk, as it can break WARNING: this answer suggest unsupported and dangerous mixing ofĭebian releases.
