jME2 app.start() problems

I compiled jME 2 and decided to try an example, the first part of the Flag Rush tutorials. I decided to take out textures because I didn’t want to get the texture files from the internet or anything, so I commented them out. I copied the code from the Flag Rush Tutorial and used the jME upgrade guide to upgrade the code to version 2. After I did that, I built it and it succeeded. Then I ran it. I got a list of running errors. I just compiled jME today. Does anyone know what the problem is? I will post the code and the errors.


package jmetest;
import com.jme.app.SimpleGame;
import com.jme.scene.shape.Sphere;
import com.jme.math.Vector3f;
import com.jme.bounding.BoundingBox;
import com.jme.scene.state.TextureState;
import com.jme.image.Texture;
import com.jme.util.TextureManager;
 
/**
 * First example class shows how to create a window/application using
 * SimpleGame. This will do nothing but display a Sphere in the center.
 * For Flag Rush Tutorial Series.
 * @author mark powell
 *
 */
public class Lesson1 extends SimpleGame {
   /**
    * Main method is the entry point for this lesson. It creates a
    * SimpleGame and tells the dialog to always appear. It then
    * starts the main loop.
    * @param args
    */
   public static void main(String[] args) {
            Lesson1 app = new Lesson1();
       app.setConfigShowMode (ConfigShowMode.NeverShow);
       app.start();
   }
 
   /**
      * sets the title of the window, creates a sphere and textures it
      * with the monkey.
      * @see com.jme.app.SimpleGame#initGame()
      */
     protected void simpleInitGame() {
        display.setTitle("Tutorial 1");
       
        Sphere s = new Sphere("Sphere", 30, 30, 25);
        s.setLocalTranslation(new Vector3f(0,0,-40));
        s.setModelBound(new BoundingBox());
        s.updateModelBound();
       
        /*Texture texture = TextureManager.loadTexture(
                      main.class.getClassLoader().getResource(
                      "jmetest/data/images/Monkey.jpg"),
                      Texture.MM_LINEAR_LINEAR,
                      Texture.FM_LINEAR);
        TextureState ts = display.getRenderer().createTextureState();
        ts.setEnabled(true);
        ts.setTexture(texture);
      
        s.setRenderState(ts);*/
      
        rootNode.attachChild(s);
     }
 
}



init:
deps-jar:
compile:
run:
Sep 5, 2008 6:29:48 PM com.jme.app.BaseGame start
INFO: Application started.
Sep 5, 2008 6:29:48 PM com.jme.system.PropertiesGameSettings <init>
INFO: PropertiesGameSettings created
Sep 5, 2008 6:29:48 PM com.jme.system.PropertiesGameSettings load
WARNING: Could not load properties. Creating a new one.
Sep 5, 2008 6:29:48 PM com.jme.app.BaseSimpleGame initSystem
INFO: jME version 2.0 dev build 2
Sep 5, 2008 6:29:48 PM com.jme.input.joystick.DummyJoystickInput <init>
INFO: Joystick support is disabled
Sep 5, 2008 6:29:48 PM class jmetest.Lesson1 start()
SEVERE: Exception in game loop
java.lang.NoClassDefFoundError: org/lwjgl/LWJGLException
        at com.jme.system.lwjgl.LWJGLSystemProvider.getDisplaySystem(LWJGLSystemProvider.java:54)
        at com.jme.system.DisplaySystem.getDisplaySystem(DisplaySystem.java:283)
        at com.jme.system.DisplaySystem.getDisplaySystem(DisplaySystem.java:184)
        at com.jme.app.BaseSimpleGame.initSystem(BaseSimpleGame.java:355)
        at com.jme.app.BaseGame.start(BaseGame.java:67)
        at jmetest.Lesson1.main(Lesson1.java:27)
Caused by: java.lang.ClassNotFoundException: org.lwjgl.LWJGLException
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        ... 6 more
Sep 5, 2008 6:29:50 PM com.jme.app.BaseSimpleGame cleanup
INFO: Cleaning up resources.
Exception in thread "main" java.lang.NoClassDefFoundError: org/lwjgl/LWJGLException
        at com.jme.system.lwjgl.LWJGLSystemProvider.getDisplaySystem(LWJGLSystemProvider.java:54)
        at com.jme.system.DisplaySystem.getDisplaySystem(DisplaySystem.java:283)
        at com.jme.util.TextureManager.doTextureCleanup(TextureManager.java:832)
        at com.jme.app.BaseSimpleGame.cleanup(BaseSimpleGame.java:581)
        at com.jme.app.BaseGame.start(BaseGame.java:99)
        at jmetest.Lesson1.main(Lesson1.java:27)
Caused by: java.lang.ClassNotFoundException: org.lwjgl.LWJGLException
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        ... 6 more
Java Result: 1
BUILD SUCCESSFUL (total time: 2 seconds)



Any help will be appreciated.
Caused by: java.lang.ClassNotFoundException: org.lwjgl.LWJGLException

You don't have the libraries set up the way they should be. From the ant output I'd guess that you are using NetBeans, is that correct? Verify that your Project's libraries contain all the jars you need - you can do that in NetBeans' project explorer view at the left side of the app window.
lwjgl.jar is probably missing (and maybe more), add it to your project's libraries using the NetBeans project properties dialog.

Ok, I thought it might be with the compiling. Thanks.