Help running first jME program

I installed jME properly in netbeans and wrote on of the tutorial programs found on this site. There are no errors and the program compiles fine, but when ran it gives this error:



java.lang.NoClassDefFoundError: and

Exception in thread "main"

Java Result: 1





here is the code for the tutorial program if it matters


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();
        app.setDialogBehaviour(SimpleGame.ALWAYS_SHOW_PROPS_DIALOG);
        app.start();
    }
   
    protected void simpleInitGame() {
       
    }
}

i've got all the jars added, the program compiles properly but for whatever reason it won't run

thats whats weird about the message, i posted the entire thing. It doesn't list what class it couldn't found. I'm assuming i'm doing something stupid that can be fixed right quick but while I'm new to jME I would consider myself proficient in Java and I don't see anything in that code that could possibly generate that error.

well i've got the lwjgl.jar, the jorbis jar, the jogg jar, the jinput jar, and every jar in the com.jme. folder added to my project. Nothing in the jdk or jre folders needs to be modified to run these programs correct? I was able to run the test programs by the way so its not like there is something wrong with my build. I've also got this string in the vm options:



-Djava.library.path=

Well the problem with the class not found error is fixed but now this error message is coming up



Apr 30, 2008 10:25:27 PM com.jme.app.BaseGame start

INFO: Application started.

Apr 30, 2008 10:25:27 PM com.jme.system.PropertiesIO <init>

INFO: PropertiesIO created

Apr 30, 2008 10:25:27 PM com.jme.system.PropertiesIO load

WARNING: Could not load properties. Creating a new one.

Apr 30, 2008 10:25:27 PM class HelloWorld start()

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)

        at java.security.AccessController.doPrivileged(Native Method)

        at org.lwjgl.Sys.doLoadLibrary(Sys.java:68)

        at org.lwjgl.Sys.loadLibrary(Sys.java:84)

        at org.lwjgl.Sys.<clinit>(Sys.java:101)

        at org.lwjgl.opengl.Display.<clinit>(Display.java:111)

        at com.jme.system.lwjgl.LWJGLPropertiesDialog$ModesRetriever.run(Unknown Source)

        at com.jme.app.AbstractGame.getAttributes(Unknown Source)

        at com.jme.app.BaseGame.start(Unknown Source)

        at HelloWorld.main(HelloWorld.java:18)

Apr 30, 2008 10:25:27 PM com.jme.app.BaseSimpleGame cleanup

INFO: Cleaning up resources.

Apr 30, 2008 10:25:27 PM com.jme.system.lwjgl.LWJGLDisplaySystem <init>

INFO: LWJGL Display System created.

Apr 30, 2008 10:25:28 PM com.jme.app.BaseGame start

INFO: Application ending.





i've got the java library path for the jmelib in my vm options so it should be recognizing the lwjgl but for some reason it isn't

I had this too. For some reason, this makes a difference…



You have: -Djava.library.path=

yeah thanks it works now. I appreciate the help, i never would have picked up on something like that by myself.

As soon as I can, I will add a note to the wiki warning of copy-paste errors.



(EDIT)  Edits made to the wiki.