HelloWorld(NetBeans 6.0.1); Problem: “not displaying the SimpleGame graphics”

Hello Friends,



I am using NetBeans 6.0.1.



Yesterday, I set up this NetBeans to build JME and JME-Physics 2 according to the instructions provided on the following site: http://www.jmonkeyengine.com/wiki/doku.php?id=setting_up_netbeans_5.0_to_build_jme_and_jme-physics_2



Then I tested the HelloWorld sample as provided below:



//


import com.jme.app.SimpleGame;
import com.jme.scene.shape.Box;
import com.jme.math.Vector3f;

public class HelloWorld extends SimpleGame{
public static void main(String[] args) {
  HelloWorld app = new HelloWorld(); // Create Object
  // Signal to show properties dialog
  app.setDialogBehaviour(SimpleGame.ALWAYS_SHOW_PROPS_DIALOG);
  app.start(); // Start the program
}
protected void simpleInitGame() {
  // Make a box
  Box b = new Box("Mybox", new Vector3f(0,0,0), new Vector3f(1,1,1));
  rootNode.attachChild(b); // Put it in the scene graph
}
}
//

It seems to Build and Run sucessfully, but I only get the following output on the output window:
init:
deps-jar:
compile:
run:
BUILD SUCCEESSFUL (total time: 0 seconds)

But unfortunately I can't seem to get it to display the SimpleGame graphics/window.

Can someone help me to see what I am missing?

Thanks in advance

The code you posted works just fine.



Just checking here… did you actually choose to run the application or did you just build it?

Mindgamer said:

The code you posted works just fine.

Just checking here... did you actually choose to run the application or did you just build it?


Thanks for replying so fast,

I guess the problem may be linked to the following error message. Obviously I was testing it wrongly the first time. I am sorry for that.
......
SEVERE: Exception in game loop
java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
        at java.lang.Runtime.loadLibrary0(Runtime.java:823)
        at java.lang.System.loadLibrary(System.java:1030)
        at org.lwjgl.Sys$1.run(Sys.java:75)
        .....

The VM Option is set as follows:
-Djava.library.path=“MY_PATH_TO_JME_CVS/jme/lib”:“MY_PATH_TO_JME-PHYSICS-2_CVS/jmephysics/impl/ode/lib”

I am working on Linux of the Debian variety.

Any further hint will be highly appreciated.

Hey. Take a close look at the " symbols in your Djava.library.path. See how they're curved like that? They shouldn't be. Replace them with the " from your own keyboard (literally, just highlight them and hit ") and everything will work.

Trussell said:

Hey. Take a close look at the " symbols in your Djava.library.path. See how they're curved like that? They shouldn't be. Replace them with the " from your own keyboard (literally, just highlight them and hit ") and everything will work.


Thanks for replying,

I have tried this idea but it did not solve the problem. It still throws the same exception.

OH and it's supposed to be a ; that separates them. Not a :

Trussell said:

OH and it's supposed to be a ; that separates them. Not a :


Thanks for writing,

I thought that the semicolon (;) is meant for the windows system. I am working on Linux of the Debian variety.

Neverthelss, it seems to be working now!

I modified my initial VM options -- from this:
-Djava.library.path=“MY_PATH_TO_JME_CVS/jme/lib”:“MY_PATH_TO_JME-PHYSICS-2_CVS/jmephysics/impl/ode/lib”

to this:
-Djava.library.path=“/home/bla/MY_PATH_TO_JME_CVS/jme/lib”:“MY_PATH_TO_JME-PHYSICS-2_CVS/jmephysics/impl/ode/lib”

Thanks