BloodyMods / ServerStarter

MIT License
99 stars 62 forks source link

Linux java path - invalid yaml #70

Open romulous75 opened 1 year ago

romulous75 commented 1 year ago

As soon as I change the forcedJavaPath to /usr/bin/java it fails to start

forcedJavaPath: /usr/bin/java

` ./startserver.sh Skipping download. Using existing serverstarter-2.3.1.jar [15:32:59] [ERROR] Failed to load Yaml

java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 111 at org.yaml.snakeyaml.reader.StreamReader.peek(StreamReader.java:136) ` Also tried:

forcedJavaPath: "/usr/bin/java"

And

forcedJavaPath: ~

romulous75 commented 1 year ago

The fix seems to be Leave it Blank, but your default java has to be the correct version to match the mc version.

forcedJavaPath:

BloodWorkXGaming commented 1 year ago

Hi :) Yaml might have issues because of the starting /. You can try to enclose the whole path in "..." to help yaml recognize it as a string.

BloodWorkXGaming commented 1 year ago

A shit, sorry, didn't see your edits before writing. Can you send the complete erroring file?