-1

I cannot figure out anywhere online how to download java 8 just to host a minecraft server and since there is no more sudo apt install javajdk-8-jdk i cant figure it out

1 Answers1

0

As you're on Ubuntu Server, first enable the universe repository to get Java.

Run this command on your Ubuntu server:

sudo add-apt-repository universe

Then refresh your repositories so you can install Java:

sudo apt update

Finally, install Java 8, as you want to run a Minecraft 1.12 server:

sudo apt install openjdk-8-jre

If you want to run a Minecraft 1.16/1.17 server, install openjdk-16-jre instead.

For Minecraft 1.18, install openjdk-17-jre.

Have a nice day!