Is Running Minecraft Server on Linux (Lubuntu) Possible?

Solution 1:

Sure it's possible. You did it yourself already. I have a Minecraft server chugging away right now.

From this Minecraft Server Tutorial:

  • For Minecraft Server 1.16 and below: Install the package openjdk-8-jdk-headless
  • For Minecraft Server 1.17 and above: Install the package openjdk-16-jdk-headless

Both packages are available in all currently-supported releases of Ubuntu in the Universe pocket. Most folks already have Universe enabled, so it's a simple matter of...

sudo apt install <packagename>
sudo apt install /path/to/downloaded/server.jar

...however some folks don't have Universe enabled, so two extra steps are needed.

sudo add-apt-repository universe
sudo apt update
sudo apt install <packagename>
sudo apt install /path/to/downloaded/server.jar

You asked only about Java, so the answer is only about Java.

You did not ask about other steps to setup, launch, and backup the server. If you had, I would have simply pointed you to that linked tutorial. It has everything you need.