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.
Attempting to launch the Minecraft server encountered issues. The system reported an unrecognized option and a fatal error during execution.
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
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!
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