> ## Content Index
> Fetch the complete content index at: https://itsfoss.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Here's How I Managed to Install Minecraft on Ubuntu
- URL: https://itsfoss.com/install-minecraft-ubuntu/
- Published: 2024-09-08T06:35:32.000Z
- Updated: 2025-12-18T09:07:38.000Z
- Description: Switched to Linux and looking to play Minecraft? The good news is that if you have Java on your system, you can enjoy Minecraft. Here's how!
- Author: Sreenath
- Tags: Ubuntu, Installation 📥, #hide

Minecraft is one of the most popular video-game in history, with several million monthly active players. This sandbox game was developed by Mojang Studios, which was later purchased by Microsoft.

If you are a Minecraft player, it's easy to set it up in Linux these days. Let's see how you can play it properly on Ubuntu.

🚧

If you are using any proprietary graphics, [you should install proper drivers](https://itsfoss.com/install-additional-drivers-ubuntu/). Otherwise, you may not be able to play Minecraft properly or at all.

## Install Java Runtime

Java is required to run Minecraft. So, you should install a proper Java runtime on your system. You have two main opti ons:

- OpenJDK: Easily installable from Ubuntu's repositories but I noticed a slight lag in movement during gameplay.
- OracleJDK: Deb file needs to be downloaded from Oracle's website but I find smoother movement with it.

### Option 1: OpenJDK

You can install the open-source OpenJDK using the command below:

```bash
sudo apt install default-jdk

```

Learn [more about installing Java on Ubuntu](https://itsfoss.com/install-java-ubuntu/) and the various options you have.

### Option 2: Oracle JDK

Oracle provides a deb file, to install Oracle JDK in Ubuntu and other Debian-based systems. It has some proprietary code compared to the OpenJDK.

Download the DEB files from the official Oracle web page.

[Download Oracle Java Deb File](https://www.oracle.com/java/technologies/downloads/?ref=itsfoss.com)

Now, [install the deb package](https://itsfoss.com/install-deb-files-ubuntu/) using the *dpkg* command:

```bash
sudo dpkg -i <path-to-downloaded-deb-file>

```

For me, it was:

```bash
sudo dpkg -i jdk-22_linux-x64_bin.deb 

```

That's it. You have installed Java on your system. Verify it using the command:

```bash
java --version

```

![Checking installed version of Java in Ubuntu using the --version option](https://itsfoss.com/content/images/2024/07/java-version-installed-1.png)

Checking Installed Java version

## Install Minecraft Launcher

Once you have set the Java Runtime on your system, you are ready to install Minecraft in Ubuntu.

First, download the Debian installation files for Minecraft from the official repository.

[Download Minecraft](https://www.minecraft.net/download?ref=itsfoss.com)

![Download the Debian installation files from Minecraft official website](https://itsfoss.com/content/images/2024/07/download-the-debian-files.webp)

Download Debian Install files

This will download a .deb file. Right-click on the file and select ***open with***.  
From the new dialog box, select **App Center** and click **Open**.

![Open the Minecraft DEB file in App Center](https://itsfoss.com/content/images/2024/07/open-with-app-center.png)

Open Deb file in App Center

🚧

At the time of writing this, [installing deb file through App Center](https://news.itsfoss.com/ubuntu-24-04-deb-install/?ref=itsfoss.com) is only rolling out to users.

This will open it in the App Center. Click on the *Install* button to install the file.

![On the Ubuntu App Center, click on the Install button to install the Minecraft DEB file](https://itsfoss.com/content/images/2024/07/click-on-install-button-to-install-minecraft.png)

Install DEB File

It will ask you to confirm and then prompt you to give admin password. Give those responses and you are done installing.

If you are a terminal fan, you can install the deb file using the command:

```bash
sudo apt install <path-to-the-deb-file>

OR

sudo dpkg -i <path-to-the-deb-file>

```

## Run the Launcher

After installing the Minecraft deb file, open it from the Ubuntu Activities Overview.

![Open the Minecraft Launcher from Ubuntu Activities Overview](https://itsfoss.com/content/images/2024/07/open-the-minecraft-launcher.png)

Open Minecraft Launcher

The launcher will download the required update files.

![Minecraft Launcher downloading required files to run the application.](https://itsfoss.com/content/images/2024/07/minecraft-launcher-downloading-files.png)

Minecraft Launcher Downloading Files

You need to wait for some time for the download and clean up to finish. After that, you can log in to Minecraft using your Microsoft Account.

🚧

If you are an active Minecraft player, you should be aware of the Mojang → Microsoft account migration. If you are coming back after a long time, you may have to start with a Microsoft account, since the post-migration process is completed.

![Log in to the Minecraft Launcher using the Microsoft Account](https://itsfoss.com/content/images/2024/07/minecraft-launcher.png)

Minecraft Login

Click on Sign in using your MS Account and follow the on-screen instructions.

If you have not purchased Minecraft, once you complete the sign-in process, you will be landed on a page to purchase Minecraft.

![Purchase Minecraft to play. You can click on the "Play Demo" button to start a demo session.](https://itsfoss.com/content/images/2024/07/play-or-purchase-minecraft.webp)

Purchase or Play Demo

Or you can play a demo.

🚧

Demo will download some 950 MB of data. So make sure you have a good internet connection.

Once the download is completed, it will start automatically. You can click on the “Play Demo World” button.

![Click on the "Play Demo World" button for playing a demo Minecraft world.](https://itsfoss.com/content/images/2024/07/play-minecraft-demo.webp)

Play a Demo

🚧

The demo is available for 5 in-game days (1 hour and 40 minutes real time). You need to purchase for full experience.

![Minecraft Demo will be active for only 5 in-game days, which is equal to 1 hour and 40 minutes of real time. This will be notified before entering the Demo world.](https://itsfoss.com/content/images/2024/07/minecraft-demo-warning.webp)

Minecraft Demo Warning

When you click on the “Continue Playing!” button, you will be entered into the Demo world.

![Inside Minecraft Demo session in Ubuntu](https://itsfoss.com/content/images/2024/07/inside-minecraft-demo.webp)

Playing Minecraft Demo

🎮

****Want to Play with Friends?**  
If you'd like to create a multiplayer world or run modpacks without hosting the server on your own machine, you can use a [managed server provider](https://hosthavoc.com/minecraft?ref=itsfoss.com). These server hosting providers handle setup, modpacks, backups, and uptime for you, so you can focus on playing instead of maintaining a server.  
  
Learn [more about it here](https://hosthavoc.com/minecraft?ref=itsfoss.com).

## Conclusion

I believe you can handle it from here. Enjoy [Minecraft](https://www.minecraft.net/en-us?ref=itsfoss.com) on Linux 😄