DarkPacks / SkyFactory-4

SkyFactory 4 offers a brand-new experience never before seen in the series. Full automation, tech, magic, and bacon resources! This iteration offers over 30+ world types so you can play the pack like never before!
https://minecraft.curseforge.com/projects/skyfactory-4/
133 stars 45 forks source link

starting server errors with `no awt in java.library.path` #2181

Closed 1e1001 closed 1 year ago

1e1001 commented 1 year ago

Bug Description

Starting the minecraft server errors with java.lang.UnsatisfiedLinkError: no awt in java.library.path

Did this behavior use to work in the previous version?

I have no idea?

Steps to Reproduce (for bugs)

  1. setup a skyfactory 4.2.4 server
  2. start it with ServerStart.sh
  3. wait
  4. it closes with an error

Logs

World Information

Client Information

Server Information

github-actions[bot] commented 1 year ago

@1e1001: hello! :wave:

This issue is being automatically closed because it does not follow the issue template.

sam-kirby commented 1 year ago

How have you obtained Java 1.8.0_272 on nixOS - according to the package list they provide 1.8.0_322. As I understand it, manually installing programs on nixOS is complicated by the non-standard library search paths, which seems to be the kind of issue you're running into.

1e1001 commented 1 year ago

i am using the jdk8_headless package, after an update it's still on 1.8.0_272

sam-kirby commented 1 year ago

This looks like a mod bug, code for handling colours is being loaded on the server. However, the mod in question is no longer updated on 1.12.2, and this isn't an issue on any other Linux distribution encountered so far - whether using headless or graphical packages - so I'm going to approach this as though it is a problem with your setup.

The simplest possible solution is to use jdk8 instead; the missing library is the abstract window toolkit. In theory a headless version should be present (libawt_headless.so) but this might be completely disabled by the --disable-headful configure argument. I've looked at Arch and Ubuntu and neither change the way they build the Jdk between headless and graphical variants, just which files get included in the resulting package, so this looks like an important difference.

Looking at the build script, this shouldn't pull in any additional dependencies if you turn off enableGnome2. LibX11 already looks to be an input.

1e1001 commented 1 year ago

using jdk8 fixed it, although i swear i've tried that before (maybe it was still using jdk8_headless?)