I download jme3 source and then build by following instruction at https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:build_from_sources
The build looks ok.
Then I try the example https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:beginner:hello_simpleapplication
Compilation works but when launching the examlpe it throws
[java]
…
org.lwjgl.LWJGLException: X Error - disp: 0x8d71d80 serial: 117 error: BadWindow (invalid Window parameter) request_code: 137 minor_code: 4
…
Jan 25, 2011 2:19:47 PM com.jme3.app.Application handleError
SEVERE: Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]
java.lang.IllegalStateException: Cannot determine close requested state of uncreated window
[/java]
The code is exactly the same as example shown
[java]
import com.jme3.app.SimpleApplication;
import com.jme3.material.Material;
import com.jme3.math.Vector3f;
import com.jme3.scene.Geometry;
import com.jme3.scene.shape.Box;
import com.jme3.math.ColorRGBA;
/** Sample 1 - how to get started with the most simple JME 3 application.
- Display a blue 3D cube and view from all sides by
- moving the mouse and pressing the WASD keys. */
public class Start extends SimpleApplication {
public static void main(String[] args){
Start app = new Start();
app.start();
}
@Override
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);
geom.setMaterial(mat);
rootNode.attachChild(geom);
}
}
[/java]
My environment is Debian squeeze, java 2.6.0_21-b06
How to fix this problem?