RaspberryPiMinecraft
RaspberryPiMinecraft copied to clipboard
Required OpenJDK version 18 could not be installed
Hey there!
When trying to setup a minecraft server using SetupMinecraft.sh with an SSD mounted to the raspberry pi it doesn't install into the SSD folder even when changing the directory from the script.
I wanted to set the server folder as /mnt/ssd/minecraft, so I changed the script to:
DirName=$(readlink -e /mnt/ssd) if [ -z "$DirName" ]; then DirName=~ fi
This seemed to work because the folder minecraft was created there and some other folders related to the OpenJDK installation as well. But then an error is thrown after trying to install OpenJDK:
Required OpenJDK version 18 could not be installed.
When checking java --version, these are the results:
openjdk 20 2023-03-21 OpenJDK Runtime Environment (build 20+36-snap) OpenJDK Server VM (build 20+36-snap, mixed mode, sharing) from ubuntu using the command line
What should I do?
Best regards, Pedro