Server.jar is a program file, not a launcher — it needs to run in the background, not open like a regular application

When you download server.jar, you're getting the actual Minecraft server software. It's designed to run continuously in a command window or terminal, not to open a graphical interface the way Minecraft Java Edition does on your computer. If you double-click it and nothing visible happens, or a window flashes and closes, that's often normal — the server may actually be running, but you're not seeing it because you're looking for the wrong thing.

The confusion happens because server.jar behaves differently from most programs you're used to. It doesn't have buttons to click or a menu to navigate. Instead, it listens for connections from players and manages the game world in the background. You interact with it through text commands typed into a command window, not through a visual interface.

Key Takeaways

  • Server.jar must run in a command prompt (Windows) or terminal (Mac/Linux), not by double-clicking it like a regular program.
  • You need Java installed on your computer first — server.jar won't run without it, and you'll see an error message if Java is missing.
  • The correct way to start the server is to open a command window in the folder containing server.jar and type a specific command.
  • Once running, the server stays open in that window and shows text messages as players join and events happen.

How to actually start server.jar on Windows

On Windows, you need to open a command prompt in the same folder as your server.jar file. The fastest way is to hold Shift, right-click the empty space in the folder, and select "Open PowerShell window here" (or "Command Prompt here" on older Windows versions). This opens a command window already pointed at the correct location.

Once the command window is open, type this exact command and press Enter:

java -Xmx1024M -Xms1024M -jar server.jar nogui

The 1024M part means the server gets 1 gigabyte of memory to use. If your computer has more RAM and you want more players, you can increase both numbers to 2048M or 4096M. The nogui at the end tells it not to try opening a graphical window — just run in text mode. Press Enter and the server should start. You'll see text appear saying things like "Loading properties" and "Starting Minecraft server." This is the server running correctly.

How to start server.jar on Mac or Linux

On Mac or Linux, open the Terminal application. Navigate to the folder containing server.jar by typing cd followed by the path to that folder. For example, if your server folder is on your Desktop, you might type:

cd ~/Desktop/minecraft-server

Then type the same Java command as Windows:

java -Xmx1024M -Xms1024M -jar server.jar nogui

Press Enter and the server starts. You'll see the same startup messages appear in the terminal window. Keep this terminal window open while the server is running — closing it will shut down the server and disconnect all players.

What to do if you get an error message

The most common error is "java: command not found" or "'java' is not recognized." This means Java is not installed on your computer, or it's installed but not set up so that the command prompt can find it. Download Java from java.com (the regular Java Runtime Environment is fine) and install it. Then try the command again.

Another common error is "server.jar not found" or a similar message. This means the command prompt is looking in the wrong folder. Make sure you're in the exact folder where server.jar actually sits. Type dir (Windows) or ls (Mac/Linux) to see what files are in the current folder and confirm server.jar is there.

If the window opens and immediately closes, the server likely crashed. Try running the command again but without nogui at the end — this opens a graphical window that might show you an error message before it closes. Or try increasing the memory amount (change 1024M to 2048M) in case the server is running out of RAM.

Why the server window must stay open

Once server.jar is running in a command window, that window must stay open for the server to keep running. If you close the window, the server stops immediately and all players get disconnected. This is different from many programs that keep running in the background after you close them.

If you want the server to run even when you're not at your computer, you have two options. The first is to leave your computer on with the command window open all the time — not practical for most people. The second is to use hosting software that runs the server on a remote computer (a service like Nitrado, Aternos, or your own rented server) so it stays on without your personal computer needing to be powered on.

Understanding what happens after the server starts

Once the server is running, you'll see text messages appear in the command window as things happen. When a player joins, you'll see a message like "[PlayerName] logged in." When someone places a block or breaks something, the server logs that activity. These messages are normal and mean the server is working.

To stop the server, type stop in the command window and press Enter. The server will shut down gracefully, saving the world and disconnecting players. Never just close the window without typing stop first — that can corrupt the world file.

If you want to give commands to the server (like changing the game mode or teleporting a player), you type them directly into the command window. For example, typing gamemode creative switches the server to creative mode. A full list of server commands is available on the official Minecraft wiki.

Frequently Asked Questions

Do I need to buy server.jar or is it free?

Server.jar is free and comes directly from Mojang, the company that makes Minecraft. You download it from the official launcher or the Minecraft website. Be cautious of websites claiming to sell server.jar or offering "premium" versions — those are not legitimate.

Can I run server.jar by double-clicking it?

You can try, but it usually won't work the way you expect. Double-clicking may open a command window that closes immediately, or nothing visible happens at all. The proper method is to open a command prompt or terminal first, then run the Java command. This gives you control and lets you see what's happening.

How many players can connect to a server.jar server?

Server.jar defaults to 20 players maximum, but you can change this by editing the server.properties file and changing the line that says "max-players=20" to a higher number. Your computer's power and internet speed are the real limits — more players need more processing power and bandwidth.

What's the difference between server.jar and a server host like Aternos?

Server.jar runs on your own computer, so it's free but requires your computer to stay on. Aternos and similar services run the server on their computers for you, so it stays on without your involvement, but they may have limitations on world size or player count depending on the plan.

Will my world be saved if I close the command window?

If you close the window without typing "stop" first, the world may not save properly and you could lose recent changes. Always type "stop" and wait for the server to shut down before closing the window. This ensures the world file is written to disk safely.