Hey guys I’m using Linux for the first time ever and running Fedora 21.
I’m working on a game using libGdx but when I run the project through eclipse or a runnable Jar i get this error:
LwjglApplication: Couldn’t initialize audio, disabling audio
java.lang.UnsatisfiedLinkError: /tmp/libgdxandre4/1c78875b/liblwjgl.so: libjawt.so: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1929)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1814)
at java.lang.Runtime.load0(Runtime.java:809)
at java.lang.System.load(System.java:1083)
at org.lwjgl.Sys$1.run(Sys.java:70)
at java.security.AccessController.doPrivileged(Native Method)
at org.lwjgl.Sys.doLoadLibrary(Sys.java:66)
at org.lwjgl.Sys.loadLibrary(Sys.java:96)
at org.lwjgl.Sys.(Sys.java:117)
at org.lwjgl.openal.AL.(AL.java:59)
at com.badlogic.gdx.backends.lwjgl.audio.OpenALAudio.(OpenALAudio.java:72)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication.(LwjglApplication.java:83)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication.(LwjglApplication.java:64)
at com.me.mygdxgame.Main.main(Main.java:25)
Exception in thread “LWJGL Application” java.lang.NoClassDefFoundError: Could not initialize class org.lwjgl.Sys
at org.lwjgl.opengl.Display.(Display.java:135)
at com.badlogic.gdx.backends.lwjgl.LwjglGraphics.setVSync(LwjglGraphics.java:446)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:118)
My assumptions woiuld be something related to openGL, I’m using a recycled Lenovo ThinkPad x230i. When this computer was running windows I would have no problems executing the file.
I installed the JDK via Oracle website and downloaded the .rpm. I did not use the terminal to install it. I’m not sure if there is a difference.
I tried downloading and installing the latest Intel drivers for Linux, I’m not sure if it’s acutally installing correctly, again doing this outside of the terminal.
I really want to use Fedora as my main OS for developing cause it’s quite smooth and very light.
EDIT: I just downloaded the libGdx setup app (gdx-setup.jar) and tried to run it
and I got this:
Exception in thread “main” java.awt.HeadlessException
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:207)
at java.awt.Window.(Window.java:536)
at java.awt.Frame.(Frame.java:420)
at java.awt.Frame.(Frame.java:385)
at javax.swing.JFrame.(JFrame.java:181)
at com.badlogic.gdx.setup.GdxSetupUI.(Unknown Source)
at com.badlogic.gdx.setup.GdxSetup.main(Unknown Source)