Trying to install Java 8 as I need an older version of Java to run something. I am using a Raspberry Pi 4B 8GB and am very new when it comes to Linux.
I tried running sudo apt install openjdk-8-jdk
and when that wouldn't work I tried researching. The only things I could find I either couldn't understand or just wouldn't work. I'm sorry if I didn't give enough information, like I said I am very new to this stuff.
Edit:
When I try to run sudo apt install openjdk-8-jdk
, I get the error message:
Unable to locate package openjdk-8-jdk.
This happened after I used sudo apt update
and sudo apt upgrade
.
I did run sudo apt install default-jdk
and it tells me it is already in the newest version but when I try to run sudo update-alternatives --config java
, it tells me there is only one alternative in link group java (providing /usr/bin/java): /usr/lib/jvm/java-11-openjdk-arm64/bin/java nothing to configure.
Sorry for not being clear.