My Biography
My Biography
for new players, but does not change the world's default game mode
( GameType in the level.dat file).
--universe <String>
The folder in which to look for world folders. (default: . , the current directory)
The following options are available from server.properties too. It might be a
better idea to edit that file instead for easier management:
--world <String>
The name of the world folder in which the level.dat resides. (default: world )
This is the same as level-name .
--port <Integer>
Which port to listen on, overrides the server.properties value. (default: -1, read
from server.properties)
See Server.properties, option "server-port", for restrictions on this value.
Example command line
Running a world found in the folder "cold" on port
1337, with 1G of RAM allowed: java -Xmx1G -
jar minecraft_server.jar --port 1337 --
nogui --world cold .
Windows instructions
Installing Java
The Minecraft server requires the Java Runtime Environment
(also called JRE or simply Java). For your security, you should
only use the most recent version of Java. To verify that you have
the latest version, do one of the following:
Installing Java
Open the terminal.
Linux instructions
Linux comes in many different varieties called distributions
(distros). Some of these distros are designed or better suited for
running a server. If you are setting up a dedicated server it is
recommended to use one of these distros.
Linux, in general, is more welcoming to open source programs.
So where applicable it is recommended you use open source
programs, such as OpenJDK.
Installing Java
For most distributions, it is recommended to install OpenJDK 16
(for 1.17+) or OpenJDK 8 (for below 1.17) from the official
repositories. For Oracle Java refer to Oracle's Download Page.
Note: While not affecting Minecraft server, JavaFX or other
proprietary aspects of Java will need to be installed separately.
Specific instructions are included for each distro below, but not
all have been updated to 1.17. If it only says to install OpenJDK
8, that means that it has not yet been updated to 1.17.
Solus
Run sudo eopkg install openjdk-8 to install OpenJDK.
For OracleJDK refer to Solus Help Center
Note: OpenJDK 11 is not in Solus' repositories.
Debian, Ubuntu, Raspbian
Note: You might need to install the package "software-
properties-common" by running sudo apt-get install
software-properties-common and/or "python-software-
properties" by running sudo apt-get install python-
software-properties to use the apt-add-
repository command.