How to install Minecraft server on Ubuntu

This is a very simple task. You’ll need 3 things: a machine with Ubuntu, Java and the Minecraft server .jar file

In this tutorial we will use command lines, which is much better than GUI! ūüėČ

Before you begin, one last note: the PPA repository of Java8 and 9 is maintained by the Webudp8 Team. They take care to get the new releases and make it all easy for you.

If you’re not already on a terminal window, press Ctrl+Alt+T to open it.

Part 1: Installing Java.

Add the new repository:


Update index packages:


Install Java:


Check the installed version:


This repository also comes with a package that set the¬†environment variables for you. (Handy, isn’t it?)


Note: For some reason, if you want to install Java9 instead of 8, just change java8 to java9 on the above commands.


Part 2: Installing the actual Minecraft server.

First of all, you have to decide which Minecraft “distro” you want to install. We have 3 suggestions, but you’re free to chose another:

  • CraftBukkit: Modified version. Has support for plugins;
  • Spigot: by far, one of the most widely used versions of the server;
  • Vanilla: official version. Pristine, not modified edition… that doesn’t support plugins;

Create a directory for the server and go to it:


Place the downloaded server .jar file in the directory we just created. For this example we will supose that the server file is named minecraft_server.jar

In the above command, the -Xms1024M and -Xmx2048M indicate, respectively, the minimum and maximum amount of RAM the server can occupy. Remember that Minecraft does not require that much memory. The important thing to keep in mind is the latency of the connection.

Once you’ve ran that¬†command, the server will start and display several lines of texts that looks something like this:

At this time, a command prompt will be available to you. Your server is now ready to use.

If you want to stop it, use the command stop on the prompt.

It is highly recommended that you change the file  and use the whitelist. json.

Next Steps? How about making the server autostart with your machine?


Did I miss something? Please, tell me in the comments bellow.

The following two tabs change content below.
Breno RdV
Please allow me to introduce myself...I'm a former psychologist, with almost a decade worth of experience in Human Resources and People Management. Now a developer/software analyst working with PowerBuilder, C#, PowerShell and currently expanding to the world of Python, Xamarin, PHP Angular and (why not?) Unity.



Posted in Games, Minecraft and tagged , , , , , , , .