java-8-openjdk-amd64 is already installed by default on my Debian testing system (Buster), and I would like to keep it installed.
openjdk-7-jdk is not in my testing package list.
According to its package page, it’s available on Jessie. So I added this repository :
deb http://security.debian.org/debian-security jessie/updates main
but OpenJDK 7 won’t install:
openjdk-7-jdk depends openjdk-7-jre but it is not going to be installed openjdk-7-jre : depends: openjdk-7-jre-headless (= 7u151-2.6.11-2~deb8u1) but it is not going to be installed openjdk-7-jre : Depends: libgif4 (>= 4.1.4) but it is not installable
I know I can use
update-alternatives to switch between several JDK versions, but how do I get OpenJDK 7 installed in the first place?