Celeb Glow
updates | March 09, 2026

How to install open-jdk 7?

I need to install open-jdk 7.

I know it used to be possible to simply type sudo apt install openjdk-7-jdk, but this doesn't work any more.

I know that Java 7 has become quite obsolete, but it is still being maintained - a security update was released a few days ago, so I hope it's still possible to install it.

I'm using Debian 9.

Anyone knows how to do it?

Thanks

2 Answers

Try using SDKMan, which allows to install and manage multiple java versions.

While openjdk-7-jdk is absent in Debian 9 (Stretch), you should be able to install the latest stable OpenJDK 7 package from Jessie:

Using the following procedure:
How do I install a single package from Debian testing or unstable on stable?

Or, simply download and install the .deb packages directly from Debian security updates pool:

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy