I downloaded libgdx from official website (so I suppose it's up to date), then opened it by gradle in Intellij. I didn't change any code and compiled the default code. This is my build config:
Application doesn't work and i got this message:
Exception in thread "LWJGL Application" java.lang.NoClassDefFoundError: Could not initialize class org.lwjgl.Sys
at org.lwjgl.opengl.Display.<clinit>(Display.java:135)
at com.badlogic.gdx.backends.lwjgl.LwjglGraphics.setVSync(LwjglGraphics.java:592)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:126)
I'm using Fedora 31 with GNOME 3.34.5. Do you have any idea how to fix it?
EDIT: I've tried the other way: cloned the code from libgdx's github and followed the instructions from their wiki:
Native binaries must be brought down in order to run. These binaries are built on the snapshot build server, so you need to run a task to bring them down. Even if you plan on building natives later yourself, its recommended to bring these down so you can test your development environment is setup before moving to the next step. From the LibGDX root directory Through Gradle:
./gradlew fetchNatives
After running this I received:
FAILURE: Build failed with an exception.
What went wrong:
Could not initialize class org.codehaus.groovy.runtime.InvokerHelper
