Skip to content
·By the Gaia Legends Team·— viewsminecraft serverserver.jarjava edition

How to Set Up a Minecraft Server Using the Official Server.jar

Filed under Minecraft Server Guides & Reviews · How we create content

Version scope: Minecraft Java Edition

A player overlooking a vast Minecraft landscape hosted on a dedicated server.

Key Takeaways

PointDetails
The server.jar is theThe server.jar is the official, free server software for Minecraft Java Edition.
First run generates theFirst run generates the EULA file; you must set eula=true in eula.txt before the server starts.
The server is designedThe server is designed to run headless, making it perfect for dedicated hosting environments.
Management is done viaManagement is done via a CLI where commands don't need a / prefix, or a basic AWT GUI.
The GUI displays real-timeThe GUI displays real-time stats, player lists, and a log console for easy monitoring.

Want to host a vanilla Minecraft world for you and your friends without any third-party software or complicated control panels? The official server.jar from Mojang Studios is the most direct route. This quick reference covers exactly what it is, how to get it running, and how to manage it.

What Is the Official Server.jar?

The server.jar is the official dedicated server software for Minecraft Java Edition. It is an executable JAR file that contains the complete server program and resources, stripped of client-specific code like rendering and audio.

server.jar is an executable JAR file containing the program and resources of the Java Edition server software.

It is distributed free of charge and is intended to host a dedicated environment for multiplayer, able to run completely headless.

Step-by-Step Setup and EULA Acceptance

How to Set Up a Minecraft Server Using the Official Server.jar supporting Minecraft scene 1

The initial setup is straightforward, but there is one essential step that often causes confusion for first-time admins: accepting the End User License Agreement (EULA).

  1. Download the server.jar from the official Minecraft website and place it in an empty folder.
  2. Run the file using java -jar server.jar. The program will generate the necessary files, including eula.txt, and then exit.
  3. Open eula.txt in a text editor. You must change the line eula=false to eula=true.

The default content is as follows: Much like server.properties, it follows the .properties syntax. eula has to be set to true for the server to start.

  1. Run java -jar server.jar a second time. The server will now generate the world and configuration files and begin hosting.

Managing Your Server: CLI and GUI Interfaces

Once your server is running, you have two distinct ways to interact with it.

The server software has both a command-line interface and a basic graphical user interface.

The command-line interface (CLI) is the primary method. You type commands directly into the terminal window. A helpful quirk is that commands do not require a / prefix. You can type help, stop, or kick PlayerName directly.

If your operating system supports windowing, the server will also launch a basic graphical user interface (GUI) unless you use the --nogui flag.

The GUI appears if the platform supports windowing and the --nogui or nogui option is not provided.

This GUI provides a live overview of your server's health and activity.

It is written in Abstract Window Toolkit (AWT) and features three sections: "Stats" which displays memory usage (graph and number percentage) and average tick time, "Players" which displays a player list, and "Log and chat" which displays logs and serves the same function as the command-line interface.

Advanced: Bundler and Configuration Options

For advanced hosting setups, the server.jar includes a "bundler" layer for extracting runtime libraries. This system allows you to specify a different main class at startup using system properties, offering finer control over the server initialization process.

Sources

  • server.jar is an executable JAR file containing the program and resources of the Java Edition server software. — Server.jar
  • The default content is as follows: Much like server.properties, it follows the .properties syntax. eula has to be set to true for the server to start. — Server.jar
  • The server software has both a command-line interface and a basic graphical user interface. — Server.jar
  • The GUI appears if the platform supports windowing and the --nogui or nogui option is not provided. — Server.jar
  • It is written in Abstract Window Toolkit (AWT) and features three sections: "Stats" which displays memory usage (graph and number percentage) and average tick time, "Players" which displays a player list, and "Log and chat" which displays logs and serves the same function as the command-line interface. — Server.jar

Frequently Asked Questions

Is the server.jar free?

Yes, the server.jar is distributed by Mojang Studios free of charge. You do not need to buy anything extra to host a server.

Why does my server exit immediately when I run it?

The first run generates the EULA file. You must accept it by editing eula.txt and changing eula=false to eula=true. The server will not start until this is done.

Do I need a Minecraft account to host a server?

You do not need an account to host the server itself, but players connecting to it will need a legitimate Minecraft Java Edition account to authenticate.

Related guides

Have a question or another approach?

Compare notes with other readers. Include your edition and version when discussing mechanics.