Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux java path - invalid yaml #70

Open
romulous75 opened this issue Aug 1, 2022 · 3 comments
Open

Linux java path - invalid yaml #70

romulous75 opened this issue Aug 1, 2022 · 3 comments

Comments

@romulous75
Copy link

romulous75 commented Aug 1, 2022

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
Copy link
Author

romulous75 commented Aug 1, 2022

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
Copy link
Member

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants