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

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

Alexander Ross

Alexander Ross

Gaming, Esports & Interactive Media Writer

Alexander Ross has covered the video game industry for a decade, writing deep dives on game design, esports tournaments, VR developments, and gaming culture.

Share this article
Twitter Facebook Pinterest