Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updating javajdk version to 17 for MC 1.18 #6

Closed
rick2909 opened this issue Dec 1, 2021 · 1 comment
Closed

updating javajdk version to 17 for MC 1.18 #6

rick2909 opened this issue Dec 1, 2021 · 1 comment

Comments

@rick2909
Copy link

rick2909 commented Dec 1, 2021

My 1.18 server can't start due to not having java JDK version 17. I have followed what is being explained here but when doing ln -sf /opt/jdk-17.0.1/bin/java /usr/bin/java I get /usr/bin/java: Read-only file system.

Since you are the owner of the jail, I thought that I should post it in this repo if not close it and I will post it in the mineOS forums/repo.

@jsegaert
Copy link
Owner

jsegaert commented Dec 2, 2021

The link you referenced is very Linux-centric, where the MineOS plugin runs on FreeBSD.

There are several links in the upstream repo and in the TrueNAS forums that document this issue and provide a solution, e.g.:

In summary, you need to install Java 16 in your plugin jail by running the command pkg install openjdk16 and then for any 1.18 Minecraft servers, indicate the proper version of Java to use in the server.config file (located in /var/games/minecraft/servers/<name_of_your_server>/server.config) by setting/changing the value java_binary=/usr/local/openjdk16/bin/java.

Note that if you do not run any "legacy" servers but only 1.18 servers, as an alternative you can just uninstall the older Java versions. If there is only one version of Java installed, there's no need to set that java_binary= property.
In that case, you can also chose to reinstall or update the plugin, as the latest version of the plugin is installing openJDK16. That being said, some "Forge" mods that use sqlite may run into some SQL errors with the latest packages and Java version. There's a thread in the TrueNAS forums for this also.

@jsegaert jsegaert closed this as completed Dec 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants