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

Java path that involved in version-check in startserver.bat cannot be modified in setting.cfg #96

Open
MUYUTwilighter opened this issue Sep 11, 2023 · 0 comments

Comments

@MUYUTwilighter
Copy link

In code block :CHECKJAVA in startserver.bat, line 302 and 304, the flag -d64 does not seem to be supported by the Azule Open JDK 17, which causing error that cannot be resolved via modifying the setting.cfg file.

If I replace java with PATH_TO_CORRECT_JAVA, the script will run successfully. But it's complicated to find and modify.

My machine is not only running Minecraft server but also running other services that rely on default java 17, so it would bring extra work on me if I modify default java version. Although I do have installed java 8, I have to modify startserver.bat while it's not suggested by the readme.

Here's the log

Consider offering users an option to customize java path.
One way that may work

REM somewhere in beginning of the startserver.bat file
JAVA_PATH = Path/to/java.exe

REM line 302 and 304 in startserver.bat file
JAVA_PATH -d64 -version blablabla

Other information:
My Machine: Windows 11 x64 on a x86 CPU
Default Java incompatible with the script: Azule Open JDK 17.0.7
Modpack: E2E for MC 1.12.2

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

1 participant