Creating the Boot Script

Creating a script to start and interact with the server.

  1. In the My Minecraft Server folder, right click to open the context menu, and select New > Text Document
  2. Name the new file "temp", and edit the file.
  3. Inside the file paste the following text:
    @ECHO OFF
    java -Xms1024M -Xmx2048M -jar <server.jar> --nogui
    pause
    Note: Java arguments are saved in this start script. For more information see Java runtime parameter optimization
  4. Replace <server.jar> with the name of the server jar. For example, paper-1.21.1-119.jar
  5. Click File > Save As
    1. In the Save As Dialog, set the File Name to Start.bat and change the Type of Document to All Files
    2. Click Save, and close out of Notepad.

      The icon of the new start.bat file should change icons, and identify as a Windows Batch File .

  6. Delete temp.txt from the My Minecraft Server folder.

    Result: The boot script is now complete. Continute to Starting the Server