p>Clara and I run Minecraft on our home FreeBSD server that is located in a jail which keeps Java and other dependencies in a single location. https://www.file-upload.com/9zoqvyjsxysi While I haven't tried it, the theory is that it is possible to run the server wherever Java is supported, such as Linux or NetBSD.
/p>
p>So, I couldn't leave it at that! The good news is that you can actually run a Minecraft server on the OS I love too. This is how I did it. I'm sure there are other ways. https://dailyuploads.net/c8fkh4a7plzk </p>
p>Getting Java installed
/p>
p>After you have installed NetBSD, set up networks and enabled pkgin. You will need an OpenJDK in order to play Minecraft.
/p>
p>Minecraft 1.17 and up requires OpenJDK 17, but OpenJDK 16 is the most recent version in the most current snapshot as of July 2022. To confirm, search:
/p>
p>If it's not yet 16 you can pull the latest packages by opening your repo file:
/p>
p>Change the repo URL, in my case from 9.0 to 9.0_current:
/p>
p>This was a wonderful project. He has done a lot of great work for the NetBSD community, I feel I owe him at least a coffee or a beer next time I'm able to travel to Japan.
/p>
p>We can now install, along with other useful tools.
/p>
p>Running Minecraft
/p>
p>This location is a good one to run Minecraft as a Java-enabled server. I have all my files in one place:
/p>
p>Log in as my local user and start:
/p>
p>We are now ready to begin!
/p>
p>You'll notice that Java will throw a system not supported exception that we who run NetBSD are all too familiar with. From my testing it's safe to ignore it:
/p>
p>After you have run the server for the first time, be sure to remember about accepting the EULA.
/p>
p>Create an introductory script
/p>
p>I like to create a symlink to minecraft.jar the most up-to-date version of the server
/p>
p>You can then reference it in launch.sh using tmux to allow the server to remain active after disconnecting. I also prefer to give Minecraft more memory:
/p>
p>Now we're ready to go!
/p>
p>Follow-up
/p>
p>The next step would be creating an appropriate chroot environment to work with Java and Minecraft similar to the way I use FreeBSD jails. I have a NetBSD Chroot Exploration article that I have been working on for many years. I will clean it up and release it in the near future.
/p>