F5F Stay Refreshed Software Operating Systems You can use the `-y` switch in your batch file to automatically confirm prompts and suppress the window promotion.

You can use the `-y` switch in your batch file to automatically confirm prompts and suppress the window promotion.

You can use the `-y` switch in your batch file to automatically confirm prompts and suppress the window promotion.

Pages (2): Previous 1 2
S
senbonzakura13
Senior Member
372
12-01-2020, 06:46 AM
#11
Attempting to launch the Minecraft server encountered issues. The system reported an unrecognized option and a fatal error during execution.
S
senbonzakura13
12-01-2020, 06:46 AM #11

Attempting to launch the Minecraft server encountered issues. The system reported an unrecognized option and a fatal error during execution.

Z
Zehky
Member
52
12-11-2020, 09:27 PM
#12
Maybe ask what you're aiming to run vanilla Minecraft for? It's a bit unusual unless you prefer a quiet window title.
Z
Zehky
12-11-2020, 09:27 PM #12

Maybe ask what you're aiming to run vanilla Minecraft for? It's a bit unusual unless you prefer a quiet window title.

M
Maxavo91
Member
158
12-24-2020, 05:48 AM
#13
yes,i am running a un-modded server and those were the instructions to create a Minecraft.jar server i was using the .exe version before but everything is blank and i can't see the logs and how do i get the windows gui? another error C:\Program Files (x86)\minecraft server\.jar minecraft server>silent'silent' is not recognized as an internal or external command,operable program or batch file.C:\Program Files (x86)\minecraft server\.jar minecraft server>Title Minecraft serverC:\Program Files (x86)\minecraft server\.jar minecraft server>"C:\Program Files\Java\jre8\bin\java.exe" -Xms2024m -Xmx2024m -jar -silent "C:\Program Files (x86)\minecraft server\.jar minecraft server\minecraft_server.1.7.9.jar"Unrecognized option: -silentError: Could not create the Java Virtual Machine.Error: A fatal exception has occurred. Program will exit.C:\Program Files (x86)\minecraft server\.jar minecraft server>pausePress any key to continue . . . another error
M
Maxavo91
12-24-2020, 05:48 AM #13

yes,i am running a un-modded server and those were the instructions to create a Minecraft.jar server i was using the .exe version before but everything is blank and i can't see the logs and how do i get the windows gui? another error C:\Program Files (x86)\minecraft server\.jar minecraft server>silent'silent' is not recognized as an internal or external command,operable program or batch file.C:\Program Files (x86)\minecraft server\.jar minecraft server>Title Minecraft serverC:\Program Files (x86)\minecraft server\.jar minecraft server>"C:\Program Files\Java\jre8\bin\java.exe" -Xms2024m -Xmx2024m -jar -silent "C:\Program Files (x86)\minecraft server\.jar minecraft server\minecraft_server.1.7.9.jar"Unrecognized option: -silentError: Could not create the Java Virtual Machine.Error: A fatal exception has occurred. Program will exit.C:\Program Files (x86)\minecraft server\.jar minecraft server>pausePress any key to continue . . . another error

J
Julia7789
Junior Member
12
12-25-2020, 09:05 AM
#14
It seems the server needs to be launched without a visible CMD window, which can always be minimized. For reference, run it using @[member=Echo] offjava -Xms512M -Xmx1G -jar minecraft_server.jar, adjusting the 512 to your desired RAM allocation. Good luck!
J
Julia7789
12-25-2020, 09:05 AM #14

It seems the server needs to be launched without a visible CMD window, which can always be minimized. For reference, run it using @[member=Echo] offjava -Xms512M -Xmx1G -jar minecraft_server.jar, adjusting the 512 to your desired RAM allocation. Good luck!

F
Fioa
Junior Member
13
12-25-2020, 09:29 AM
#15
Well you can do this: package runBat;public class Main { private static final String FILE_PATH = "C:\\Users\\Gabriel\\workspace\\"; //the directory that the batch file is in. NOTICE THE BACKSLASHES private static final String FILE_NAME = "myServer.bat"; //the name of the batch file along with its extension. private static final String WITH_WINDOW = "cmd /c start " + FILE_NAME + " " + FILE_PATH; //use this to run (with) a window private static final String WITHOUT_WINDOW = "cmd /c " + FILE_NAME + " " + FILE_PATH; //use this to Hide the window public static void main(String[] args) throws Exception { Runtime.getRuntime().exec(WITHOUT_WINDOW); //change between WITH_WINDOW or WITHOUT_WINDOW here. }} Change FILE_PATH to the directory that has your batch file and change FILE_NAME to the name of the batch file e.g "minecraftserver.bat" or whatever. one more thing, to actually run this you'll have to create an (executable) jar file. I can do this for you but i don't know the your FILE_PATH and FILE_NAME. Alternatively you can use a program like JARMaker to do this. To fully stop the server you'll have to do so within Task Manager because there is no window to cross out. gl
F
Fioa
12-25-2020, 09:29 AM #15

Well you can do this: package runBat;public class Main { private static final String FILE_PATH = "C:\\Users\\Gabriel\\workspace\\"; //the directory that the batch file is in. NOTICE THE BACKSLASHES private static final String FILE_NAME = "myServer.bat"; //the name of the batch file along with its extension. private static final String WITH_WINDOW = "cmd /c start " + FILE_NAME + " " + FILE_PATH; //use this to run (with) a window private static final String WITHOUT_WINDOW = "cmd /c " + FILE_NAME + " " + FILE_PATH; //use this to Hide the window public static void main(String[] args) throws Exception { Runtime.getRuntime().exec(WITHOUT_WINDOW); //change between WITH_WINDOW or WITHOUT_WINDOW here. }} Change FILE_PATH to the directory that has your batch file and change FILE_NAME to the name of the batch file e.g "minecraftserver.bat" or whatever. one more thing, to actually run this you'll have to create an (executable) jar file. I can do this for you but i don't know the your FILE_PATH and FILE_NAME. Alternatively you can use a program like JARMaker to do this. To fully stop the server you'll have to do so within Task Manager because there is no window to cross out. gl

K
Kaine13
Member
100
12-25-2020, 11:07 PM
#16
The issue occurred because of the specified error about the jarfile not being accessible.
K
Kaine13
12-25-2020, 11:07 PM #16

The issue occurred because of the specified error about the jarfile not being accessible.

H
HairyWiener
Member
160
01-02-2021, 05:35 PM
#17
Thanks, I'll give it a shot once the server is empty.
H
HairyWiener
01-02-2021, 05:35 PM #17

Thanks, I'll give it a shot once the server is empty.

Pages (2): Previous 1 2