Creating a Minecraft server at home
You can skip this and download a pre-made server Minecraft server 1.12.2.zip (47 downloads)
Begin by downloading the server software from the Minecraft download page. The server is available as a Java .jar file, You’ll need this to create a Minecraft Server
Before starting the server, be aware that wherever you run the server from (your desktop, a download folder, etc.), it will create several configuration files in that location. It’s better to create a dedicated folder for your server, and run it from inside that folder, as this will make it easier to locate/organize all the files.
Double click the file and the server should start. It will write configuration files in the folder, and quit immediately.
The first, and required, configuration you have to do is accepting the EULA. A text file call eula.txt is created in the application folder. Open this file in a text editor and change the line
eula=true. It signifies that you have read and understood the end user license agreement that you’ll follow when using the software. If you don’t do this, the server will shut down immediately when you try to start it.
If you get an error such as “Can’t save server.properties” and your screen fills with useless, gibberish text, then run the Minecraft Server as administrator by right-mouse clicking on it and choosing ‘Run as administrator’. (You may need the administrator password to do this.)
You might want to customize the server configuration, as is explained below.
Configuring from the command line
Both the Java and the executable version can be run from the Windows command prompt/line with extra parameters to configure, for example, memory usage. As we currently know there is no command prompt for java on the Windows platform that will run these commands correctly. That however is subject to change.
To start the server, change to the Minecraft server folder (find the file path to which your server’s jar file is) and open the windows command prompt (in Start, just type cmd and it should have a file name of cmd.exe), then enter the following command:
java -jar <server-file>
<server-file> with the server application file name, for example
If you prefer not to use the server’s Graphical User Interface (GUI) to enter administration commands, simply add the option
nogui to the end of the command:
java -jar minecraft_server.jar nogui
Some people have reported that this requires (significantly) less memory and CPU resources.
You can also replace the
java command with
javaw. Javaw.exe is identical to Java.exe but there is no associated console window. This may be preferable when using a .bat file. (See the next section.) Note however that Javaw also doesn’t show any error messages in the command window if anything is wrong.
Xmx parameters, the initial and maximum memory size for Java can be specified. By default, your server runs with about 100 MB of RAM, which is very little. Most people will change their server to run with more, for example:
java -Xms512M -Xmx1G ...
java -Xms1024M -Xmx1024M ...
java -Xms1G -Xmx2G ...
-o true to tell the server to run in online mode so only authenticated users can join.
Creating a .bat file to store the commands
To start the configured Minecraft server, without having to enter all commands every time, you can create a .bat file in the server folder. You can include the
pause command to tell the window to stay open after the /stop command is issued. Useful if you want to read what happened as it shut down.
Here is an example of a bat file:
java -Xms1024M -Xmx2048M -jar minecraft_server.jar nogui pause
Double click the file to start your Minecraft server. You may get a “Class_Not_Found” and ServerGuiConcole error, just ignore these errors and you should see your “Server Thread/INFO” dialog start the server.