<p>Clara and I run Minecraft on our home FreeBSD server inside a jail, which keeps Java and other dependencies contained in a single location. It is possible to run the server on any platform that supports Java and Java-related software, including Linux and perhaps NetBSD although I haven't tried it yet. </p> <p>I couldn't let it go! The good news is, you can indeed run a Minecraft server on the OS I love too. This is how I did it. I'm sure there are more. https://extremecraft.net/ </p> <p>Getting Java installed </p> <p>After you have installed NetBSD and set up networks and enabled pkgin. You will require an OpenJDK in order to play Minecraft. </p> <p>OpenJDK 17 is required for Minecraft 1.17 and later. OpenJDK 16 however, is the most current snapshot as of July 20,22. To confirm, you can search: </p> <p>If it's still 16, you can pull current packages by opening your repo file: </p> <p>And changing the repo URL I changed mine from 9.0 to 9.0_current </p> <p>This was a fantastic project. He does a tremendous amount of work for the NetBSD community. I feel like I owe him some coffee or a beer next time I'm able to travel to Japan. </p> <p>We can now install, along with some other useful tools. </p> <p>Running Minecraft </p> <p>From here, running Minecraft is basically the same as running any Java-enabled server. I combined all my files: </p> <p>Log in as my local user and begin: </p> <p>We are now ready to begin! </p> <p>Java will throw an exception about a system that isn't supported, which NetBSD users are well aware of. From my testing I've found that you can ignore it: </p> <p>Once you've started the server for the first time, don't forget to sign the EULA. </p> <p>Create an introduction script </p> <p>I like to link to minecraft.jar the most up-to-date version of the server </p> <p>You can then refer to it in launch.sh using tmux for the server to remain active after disconnecting. I prefer to give Minecraft more memory as well: </p> <p>We're now ready to go! </p> <p>Follow-up </p> <p>My next step would be creating an appropriate chroot environment for Java and Minecraft like the way I use FreeBSD jails. I have an NetBSD Chroot Exploration article in the works for many years. I will clean it up and publish it soon. </p>