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

Key Takeaways
| Point | Details |
|---|---|
| The server.jar is the | The server.jar is the official, free server software for Minecraft Java Edition. |
| First run generates the | First run generates the EULA file; you must set eula=true in eula.txt before the server starts. |
| The server is designed | The server is designed to run headless, making it perfect for dedicated hosting environments. |
| Management is done via | Management is done via a CLI where commands don't need a / prefix, or a basic AWT GUI. |
| The GUI displays real-time | The 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

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).
- Download the
server.jarfrom the official Minecraft website and place it in an empty folder. - Run the file using
java -jar server.jar. The program will generate the necessary files, includingeula.txt, and then exit. - Open
eula.txtin a text editor. You must change the lineeula=falsetoeula=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.
- Run
java -jar server.jara 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

Java Realms Content Creator Program Categories Overview
Compare the five Java Realms map categories and choose where your creation fits before submitting it for review.

Java Edition Server Software Quick Reference
A quick reference to Minecraft Java Edition server software. Learn about the official server.jar, its features, how to download and run it, and the basics...

How to Prevent Griefing on Minecraft Servers: A Complete Protection Guide
Learn how to prevent griefing on your Minecraft server using built-in game rules like mobGriefing, doFireTick, and keepInventory. Step-by-step guide for...

Minecraft Realms: A Quick Reference for Private Server Play
Learn everything you need to know about Minecraft Realms: subscription tiers, pricing, player limits, requirements, and how to set up a private server for friends in Java and Bedrock Edition.
Have a question or another approach?
Compare notes with other readers. Include your edition and version when discussing mechanics.