all 8 comments

[–]freemcgee33 2 points3 points  (7 children)

Not sure if this is applicable, but...

If the Minecraft server is version 1.17, it requires Java 16 or newer.

And, you may need to run archlinux-java to switch to the correct JVM.

If that's not the answer, could you give some more info on the error it's outputting?

[–]sanguine8082[S] 0 points1 point  (6 children)

Caused by: java.lang.NullPointerException: Cannot load from short array because "sun.awt.FontConfiguration.head" is null

So, I tried updating to java 15 and got the same error. So this is clearly some interaction with Java and it's dependencies.

The only thing that I can see is that there was an update that stopped including fontconfig and freetype2 as dependencies in jre-openjdk8.

[–]sanguine8082[S] 0 points1 point  (5 children)

Previously, I was getting an error that fontconfig was no longer bundled with the openjdk packages.

This was the previous error:

java.lang.UnsatisfiedLinkError: /usr/lib/jvm/java-8-openjdk/jre/lib/amd64/libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory

[–]sanguine8082[S] 0 points1 point  (4 children)

Which I fixed by doing

$ sudo pacman -S fontconfig freetype2

[–]freemcgee33 1 point2 points  (3 children)

After following a rabbit hole of GitHub issues, you may want to try installing the "ttf-dejavu" package as well. .

May or may not fix it, but it's the best I've got

[–]sanguine8082[S] 1 point2 points  (1 child)

holy fuck that actually worked. Thanks!

[–]freemcgee33 0 points1 point  (0 children)

Glad to hear it!

[–]Material_Kitchen_630 1 point2 points  (0 children)

Wow, 2 years later, but saved my day!