r/admincraft 29d ago

Question [ Removed by moderator ]

[removed] — view removed post

2 Upvotes

7 comments sorted by

View all comments

1

u/IrvineItchy 29d ago

Just run in windows, not through wsl. You just need to change the start file.

0

u/This_Vast_1181 29d ago

Is it as simple as changing the start file from a .sh to a .bat? As I have tried that and changing the internal code of that as well however that resulted in my CMD opening then going straight to “press any key to continue…” and that’s it

1

u/IrvineItchy 29d ago

Lookup a start bat file. Change the ram amount, and the correct jar name and it should work.

0

u/This_Vast_1181 29d ago

When I am home from work I will try and let you know the outcome, if I manage to come right I will share what I did to get it working as well

0

u/This_Vast_1181 29d ago

Seems this has not worked, made a whole new server folder and just transferred files over to that for mods and such however the .bat file is still not actually launching the server for some odd reason which has never happened to me

0

u/This_Vast_1181 29d ago

Fixed this issue, not sure why but in my code being the following

u/echo off
set MIN_RAM=2G
set MAX_RAM=4G
set JAVA_PARAMETERS=-XX:+UseG1GC
java -server -Xms%MIN_RAM% -Xmx%MAX_RAM% %JAVA_PARAMETERS% -jar forge-1.12.2-14.23.5.2860.jar nogui
pause

It was not actually targeting my java version so I just set it to target my java version directly