AllTheMods / Server-Scripts

Server Startup Scripts
Other
68 stars 37 forks source link

Unrecognized option: -d64 Problem when attempting to execute ...\forge...universal.jar #91

Open JovadaPlayz opened 2 years ago

JovadaPlayz commented 2 years ago

I have changed a bunch of values to 1 in the settings.cfg to force internet connection and so on, have added a forge installer to the ForeverStranded Folder and it downloads it everything works but fails at the following, please help I can't figure it out:

DEBUG: Attempting to execute [ java -Xmx5G -server -d64 -Xms1G -XX:+ExplicitGCInvokesConcurrent -XX:+ExplicitGCInvokesConcurrentAndUnloadsClasses -XX:+UseConcMarkSweepGC -Dsun.rmi.dgc.server.gcInterval -jar "D:\Games\Minecraft\ForeverStranded\forge-1.10.2-12.18.3.2511-universal.jar" nogui ] Unrecognized option: -d64 Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.

WARN: Forever Stranded Server was stopped (possibly crashed)... At 20220613:165841 Server has stopped. Server has 2 consecutive stops, each within 600 seconds of eachother...

MUYUTwilighter commented 11 months ago

This problem seems to be caused by incorrect java version. For very new version of java, flag -d64 is no longer supported, which causing failure to create JVM.

The server-start script on this github project can only use default java version on your machine, so maybe another newer version of java is installed on your machine which changes the default version.

To fix this, you can change the default java version on your machine. A considerable methods can be found on google.

Or else, you can modify lines that start with "java" like java -d64 blablabla in the script, which is not suggested by ATM team. So it's up to you.

See #96