So I started to work with it in NetBeans 6.7 I followed this tutorial to set it up
http://www.jmonkeyengine.com/wiki/doku.php?id=setting_up_netbeans_6.7_for_jme_2.0
and when I run it with this code:
package test;
import com.jme.app.SimpleGame;
import com.jme.math.Vector3f;
import com.jme.scene.shape.Box;
public class TestSphere extends SimpleGame {
public static void main(String[] args) {
TestSphere app = new TestSphere();
app.setConfigShowMode(ConfigShowMode.AlwaysShow);
app.start();
}
@Override
protected void simpleInitGame() {
Box b = new Box("My box",new Vector3f(0,0,0),new Vector3f(1,1,1));// Make a box
rootNode.attachChild(b);// Put it in the scene graph
}
}
I always get this error:
30-Jul-2009 8:41:29 AM com.jme.app.BaseGame start
INFO: Application started.
30-Jul-2009 8:41:29 AM com.jme.system.PropertiesGameSettings <init>
INFO: PropertiesGameSettings created
30-Jul-2009 8:41:29 AM com.jme.system.PropertiesGameSettings load
WARNING: Could not load properties. Creating a new one.
30-Jul-2009 8:41:30 AM class test.TestSphere start()
SEVERE: Exception in game loop
java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1709)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1030)
at org.lwjgl.Sys$1.run(Sys.java:72)
at java.security.AccessController.doPrivileged(Native Method)
at org.lwjgl.Sys.doLoadLibrary(Sys.java:65)
at org.lwjgl.Sys.loadLibrary(Sys.java:81)
at org.lwjgl.Sys.<clinit>(Sys.java:98)
at org.lwjgl.opengl.Display.<clinit>(Display.java:129)
at com.jme.system.lwjgl.LWJGLPropertiesDialog$ModesRetriever.run(LWJGLPropertiesDialog.java:682)
at com.jme.app.AbstractGame.getAttributes(AbstractGame.java:252)
at com.jme.app.BaseGame.start(BaseGame.java:67)
at test.TestSphere.main(TestSphere.java:11)
30-Jul-2009 8:41:30 AM com.jme.app.BaseSimpleGame cleanup
INFO: Cleaning up resources.
30-Jul-2009 8:41:30 AM com.jme.system.lwjgl.LWJGLDisplaySystem <init>
INFO: LWJGL Display System created.
30-Jul-2009 8:41:30 AM com.jme.app.BaseGame start
INFO: Application ending.
If someone can help me set it up I would be greatful. Thanks