skip to Main Content

I want to run a minecraft server on my raspberry pi with debian 12(bookworm) on 1.12.2 and for that
I need to use Java 8.
Problem is that i cant install Java 8 on Debian 12.
Are there solutions or workarounds I can use?
Help would be appreciated.
I will provide further info if needed.
Thanks

I tried using temurin 8 jdk but it seems to not work

E: Unable to locate package temurin-8-jdk

2

Answers


  1. You can install Java 8, which is distrubuted by Adoptium, step by step as below.

    Source: https://gist.github.com/ansulev/1b924e87bd091b1d78e06d918faa8fcf

    mkdir -p /etc/apt/keyrings
    
    wget -O - https://packages.adoptium.net/artifactory/api/gpg/key/public | tee /etc/apt/keyrings/adoptium.asc
    
    echo "deb [signed-by=/etc/apt/keyrings/adoptium.asc] https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | tee /etc/apt/sources.list.d/adoptium.list
    
    apt update 
    
    apt install temurin-8-jdk
    
    update-alternatives --config java # choose new java
    update-alternatives --config javac # choose new javac
    
    Login or Signup to reply.
  2. Just download the package for ARM64 and then install it:

    wget https://corretto.aws/downloads/latest/amazon-corretto-8-aarch64-linux-jdk.deb
    
    sudo apt-get install java-common
    sudo dpkg --install java-1.8.0-amazon-corretto-jdk_8.422.05-1_arm64.deb
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search