Closed jeffreyrdubois closed 2 years ago
@jeffreyrdubois You'll most likely want to post this on to the actual MineOS Github page and not this one. This repo is just meant for being a Docker container.
The docker image now includes Java 8 Java 11 and Java 16, how you tell mineos to start a particular server with Java 16 I don't know, but it is now available
2021-06-12 22:57:11.723267 [info] JAVA_VERSION defined as '16' '/usr/lib/jvm/java-16-openjdk' is not a valid Java environment path
How do we get java-16-openjdk installed on the docker? while it doesn't start
Edit: Privileged: true on unraid is required
inside unraid terminal you can run
docker exec -it -u root [CONTAINER ID] bash
curl -O https://download.java.net/java/GA/jdk16.0.1/7147401fd7354114ac51ef3e1328291f/9/GPL/openjdk-16.0.1_linux-x64_bin.tar.gz
tar zxvf openjdk-16.0.1_linux-x64_bin.tar.gz
mv jdk-16* /usr/local/
then inside server's folder (appdata\binhex-mineos-node\mineos\games\servers) you go to your server.config and change java_binary to this:
[java]
java_binary=/usr/local/jdk-16.0.1/bin/java
java_xmx=[YOUR CONFIGURATION]
jarfile=[YOUR CONFIGURATION]
java_xms=[YOUR CONFIGURATION]
[onreboot]
start=[YOUR CONFIGURATION]
[minecraft]
profile=[YOUR CONFIGURATION]
broadcast=[YOUR CONFIGURATION]
unconventional=[YOUR CONFIGURATION]
inside unraid terminal you can run
docker exec -it -u root [CONTAINER ID] bash curl -O https://download.java.net/java/GA/jdk16.0.1/7147401fd7354114ac51ef3e1328291f/9/GPL/openjdk-16.0.1_linux-x64_bin.tar.gz tar zxvf openjdk-16.0.1_linux-x64_bin.tar.gz mv jdk-16* /usr/local/
then inside server's folder (appdata\binhex-mineos-node\mineos\games\servers) you go to your server.config and change java_binary to this:
[java] java_binary=/usr/local/jdk-16.0.1/bin/java java_xmx=[YOUR CONFIGURATION] jarfile=[YOUR CONFIGURATION] java_xms=[YOUR CONFIGURATION] [onreboot] start=[YOUR CONFIGURATION] [minecraft] profile=[YOUR CONFIGURATION] broadcast=[YOUR CONFIGURATION] unconventional=[YOUR CONFIGURATION]
this is not required, you simply set JAVA_VERSION
to 'latest' and you will get java 16 (at present) installed,
When I updated my minecraft server to use the 21w19a snapshot profile it appears it won't start anymore. I can downgrade to 21w18a and it will start fine. I notice in Minecraft's changelogs that Java 16 is now being used. Perhaps the docker needs to be updated to include Java 16? I am not super experienced in this stuff so I could be way off.