Updating to Minecraft 1.17 in FreeBSD

Software

Part one of Caves and Cliffs update is out! I updated the Minecraft server in Clara’s and my FreeBSD jail, but got this error:

Error: A JNI error has occurred, please check your installation and try again Exception in thread “main” java.lang.UnsupportedClassVersionError: net/minecraft/server/Main has been compiled by a more recent version of the Java Runtime (class file version 60.0), this version of the Java Runtime only recognizes class file versions up to 52.0

This was quite the runtime leap! Acording to The Java Version Almanac, “60” is Java 16. Thankfully the tireless FreeBSD ports maintainers had our back:

# pkg remove openjdk8
# pkg install openjdk16

Now it works. Time for Clara and I to get some axolotl friends!

Author bio and support

Me!

Ruben Schade is a technical writer and IaaS engineer in Sydney, Australia who refers to himself in the third person in bios. Wait, not BIOS… my brain should be EFI by now.

The site is powered by Hugo, FreeBSD, and OpenZFS on OrionVM, everyone’s favourite cloud infrastructure provider.

If you found this post helpful or entertaining, you can shout me a coffee or buy some silly merch. Thanks!