OS Name/Version: Ubuntu 20.04
Product Name/Version: v18.104.22.168 Ganymede
I'm trying to start a 1.17 Minecraft server.
I'm running the latest AMP version and have adoptopenjdk-16-hotspot-amd64 installed on my system and JDK 16 just isn't showing up. I've tried restarting the server, restarting AMP throught the ampinstmgr command, manually editing the Java.JavaVersion line to point to the java executable in MinecraftModule.kvp and creating new instances to no avail. I either get "AMP couldn't find Java, check that it's installed" when I manually specify a path to the java executable or "Error: LinkageError occurred while loading main class net.minecraft.server.Main" when I select JDK 8 or JDK 11 in the AMP UI
Running "java -version" tells me:
openjdk version "16.0.1" 2021-04-20 OpenJDK Runtime Environment AdoptOpenJDK-16.0.1+9 (build 16.0.1+9) OpenJDK 64-Bit Server VM AdoptOpenJDK-16.0.1+9 (build 16.0.1+9, mixed mode, sharing)
so I know the correct version is installed on the system.
Any insight would be helpful, and judging by some of the other questions on this forum, I'm not the only one having issues.
Edit: I'm a moron who doesn't know how AMP works. I ended up pulling the cubecoders/ampbase:java8 docker image and the option appeared. Thanks AbhorrentJoel for the heads up.
For anyone else in my situation (running my own server with docker), I did the following:
sudo docker pull cubecoders/ampbase:java8on your server and wait for the image to update
- Restart the instance manager with
sudo service ampinstmgr restart
- Or restart the server entirely with