Skip to content
Advertisement

LibGDX project isn’t launching, it says Could not initialize class org.lwjgl.Sys

Whenever I try to launch a LibGDX project, the problem shown below keeps appearing:

JavaScript

I can’t for the life of me figure out the solution. At first, I tried reinstalling my JDK, but that wasn’t the issue at all. It wasn’t an issue before I switched to PopOS. Any help?

Advertisement

Answer

I found out the issue. You need to change the LWJGL api in build.gradle, dependencies to LWJGL3.

JavaScript

to

JavaScript

In DesktopLauncher.java, change these

JavaScript

and

JavaScript

to

JavaScript

and

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement