GNU/Linux Ubuntu 22.04 Installing libGDX Guide
Hi! The Tutorial shows you Step-by-Step How to Install libGDX in Ubuntu 22.04 Jammy LTS GNU/Linux Desktop.
And libGDX for Ubuntu 22.04 is a cross-platform Java Game Development Framework based on OpenGL (ES).
If you’re a Linux user looking to dive into game development, LibGDX offers one of the most powerful and flexible Java-based game engines available.
This open-source framework supports Linux systems natively, making it perfect for developers who prefer working in a GNU/Linux environment.
Whether you’re building 2D or 3D games, LibGDX provides all the tools you need to get started fast on Ubuntu, Fedora, Arch, and beyond.
- ✅ Cross-platform Game Development – Write once, deploy on Linux, Android, iOS, Desktop, and Web.
- 🚀 OpenGL Support – Native OpenGL bindings ideal for Linux-based graphics rendering.
- 💡 Java & Kotlin Compatible – Seamless integration with JVM-based languages, fully supported on Linux.
- 🧰 Powerful API Suite – Includes support for graphics, input, audio, physics, and file I/O.
- 📦 Gradle & CLI Setup – Easily create new projects via the terminal using Linux-friendly scripts.
- 🎮 2D/3D Rendering Engines – Build anything from pixel games to advanced 3D simulations.
- 🔧 Lightweight & Modular – Choose only the libraries you need for faster Linux deployment.
- 🐧 Native Linux Build Support – Develop and test directly on Linux without emulators or virtual machines.
- 🛠️ Open-source & Actively Maintained – Supported by a vibrant Linux and Java dev community.
- 🧪 Unit Testing Friendly – Build reliable games with integrated JUnit testing, usable from the Linux shell.
Especially relevant: the LibGDX Recommended Gradle Setup is make by Downloading & Running the Project Generation Wizard Tool.
Next, to Develop a LibGDX Project you have two choices: Import it into and IDE or managing it on the Command Line.
Moreover, a Java JDK and OpenGL are Required for the libGDX Development on Ubuntu GNU/Linux.
Finally, this guide includes detailed instructions about How to Getting-Started with libGDX on Ubuntu.

-
1. Launching Shell Emulator
Open a Terminal window
Ctrl+Alt+t on Desktop
(Press “Enter” to Execute Commands)
-
2. Checking OpenGL Enabled
Now to Check OpenGL is Working on Display
So first Install the Required Tool with:sudo apt install mesa-utils
And then look at the Output of:
glxinfo | grep 'version'
At this time, the Required Minimum ‘OpenGL Version’ is 2!
If Not Satisfied then Search online How to Solve the Issue… -
3. Downloading libGDX for Ubuntu
Download libGDX for Ubuntu GNU/Linux
Contents