[Soleved] LWJGL Renderer Thread Exception


I have installed Jmonkey platform on my computer which runs with ArchLinux. When I compile the project Basic Game (default code), I have the error message below. Do any of you have any idea why?

Thank you!


Exception in thread “LWJGL Renderer Thread” java.lang.UnsatisfiedLinkError: /home/cours/jMonkeyProjects/BasicGame/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:1928)

at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1825)

at java.lang.Runtime.load0(Runtime.java:792)

at java.lang.System.load(System.java:1059)

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:82)

at org.lwjgl.Sys.(Sys.java:99)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:205)

at java.lang.Thread.run(Thread.java:722)

the code:

package mygame;

import com.jme3.app.SimpleApplication;

import com.jme3.material.Material;

import com.jme3.math.ColorRGBA;

import com.jme3.math.Vector3f;

import com.jme3.renderer.RenderManager;

import com.jme3.scene.Geometry;

import com.jme3.scene.shape.Box;


  • test
  • @author normenhansen


    public class Main extends SimpleApplication {

    public static void main(String[] args) {

    Main app = new Main();




    public void simpleInitApp() {

    Box b = new Box(Vector3f.ZERO, 1, 1, 1);

    Geometry geom = new Geometry(“Box”, b);


    Material mat = new Material(assetManager, “Common/MatDefs/Misc/SolidColor.j3md”);

    mat.setColor(“m_Color”, ColorRGBA.Blue);





    public void simpleUpdate(float tpf) {

    //TODO: add update code



    public void simpleRender(RenderManager rm) {

    //TODO: add render code



Are you using Sun Java or OpenJDK?

Hi Momoko_Fan

Thank you for your answer.

I am using SunJava with Jmonkey, but OpenJDK is also installed on my computer.


It seems to be a LWJGL issue. It tries to load libjawt.so internally but is not able to find it.

However looking at the forum it seems it has already been fixed in LWJGL 2.8 nightly:


Since jME3 nightly is using the latest LWJGL nightly, you might want to consider updating to it.

Thanks Momoko_Fan It’s work