Don't see Program after Launch

I have been working with JME for a few days and am somewhat new to the community.  I am having an issue with launching my game.JAR once built through NetBeans.  If I execute the file in NetBeans itself, I don't have any syntax errors, and the game launches without any issues.  I have read the logs during compiling, and it is all successful.  Here is what I see when in the NetBeans application during executing:


run:
Aug 30, 2010 12:31:56 AM TestApp.BaseGame start
INFO: Application started.
Aug 30, 2010 12:31:56 AM com.jme.system.PropertiesGameSettings <init>
INFO: PropertiesGameSettings created
Aug 30, 2010 12:31:56 AM com.jme.system.PropertiesGameSettings load
INFO: Read properties
Aug 30, 2010 12:32:00 AM com.jme.system.PropertiesGameSettings save
INFO: Saved properties
Aug 30, 2010 12:32:00 AM TestApp.BaseSimpleGame initSystem
INFO: jME2 Main Trunk @ Google Code
Aug 30, 2010 12:32:00 AM com.jme.input.joystick.DummyJoystickInput <init>
INFO: Joystick support is disabled
Aug 30, 2010 12:32:00 AM com.jme.system.lwjgl.LWJGLDisplaySystem <init>
INFO: LWJGL Display System created.
Aug 30, 2010 12:32:01 AM com.jme.renderer.lwjgl.LWJGLRenderer <init>
INFO: LWJGLRenderer created. W: 640 H: 480        Version: 2.1.0
Aug 30, 2010 12:32:02 AM TestApp.BaseSimpleGame initSystem
INFO: Running on: nv4_disp
Driver version: 6.14.11.8250
NVIDIA Corporation - GeForce 8800 GT/PCI/SSE2 - 3.0.0
Aug 30, 2010 12:32:02 AM com.jme.renderer.AbstractCamera <init>
INFO: Camera created.
Aug 30, 2010 12:32:02 AM com.jme.util.lwjgl.LWJGLTimer <init>
INFO: Timer resolution: 1000 ticks per second
Aug 30, 2010 12:32:02 AM com.jme.scene.Node <init>
INFO: Node created.
Aug 30, 2010 12:32:02 AM com.jme.scene.Node <init>
INFO: Node created.
Aug 30, 2010 12:32:02 AM com.jme.scene.Node <init>
INFO: Node created.
Aug 30, 2010 12:32:02 AM com.jme.scene.Node attachChild
INFO: Child "Graph node" attached to this node "Stats node"
Aug 30, 2010 12:32:02 AM com.jme.renderer.lwjgl.LWJGLTextureRenderer <init>
INFO: FBO support detected.
Aug 30, 2010 12:32:02 AM com.jme.renderer.lwjgl.LWJGLTextureRenderer initCamera
INFO: Init RTT camera
Aug 30, 2010 12:32:02 AM com.jme.renderer.AbstractCamera <init>
INFO: Camera created.
Aug 30, 2010 12:32:02 AM com.jme.scene.Node <init>
INFO: Node created.
Aug 30, 2010 12:32:02 AM com.jme.scene.Line <init>
INFO: Line created.
Aug 30, 2010 12:32:02 AM com.jme.renderer.lwjgl.LWJGLTextureRenderer setupTexture
INFO: setup fbo tex with id 2: 640,360
Aug 30, 2010 12:32:02 AM com.jme.scene.Node attachChild
INFO: Child "lineGraph" attached to this node "Graph node"
Aug 30, 2010 12:32:02 AM com.jme.scene.Node attachChild
INFO: Child "f4" attached to this node "Graph node"
Aug 30, 2010 12:32:02 AM com.jme.renderer.lwjgl.LWJGLTextureRenderer <init>
INFO: FBO support detected.
Aug 30, 2010 12:32:02 AM com.jme.renderer.lwjgl.LWJGLTextureRenderer initCamera
INFO: Init RTT camera
Aug 30, 2010 12:32:02 AM com.jme.renderer.AbstractCamera <init>
INFO: Camera created.
Aug 30, 2010 12:32:02 AM com.jme.scene.Node <init>
INFO: Node created.
Aug 30, 2010 12:32:02 AM com.jme.renderer.lwjgl.LWJGLTextureRenderer setupTexture
INFO: setup fbo tex with id 3: 640,120
Aug 30, 2010 12:32:02 AM com.jme.scene.Node attachChild
INFO: Child "labelGraph" attached to this node "Graph node"
Aug 30, 2010 12:32:02 AM com.jme.scene.Node <init>
INFO: Node created.
Aug 30, 2010 12:32:02 AM com.jme.scene.Node attachChild
INFO: Child "b1" attached to this node "myNode"
Aug 30, 2010 12:32:02 AM com.jme.scene.Node attachChild
INFO: Child "b2" attached to this node "myNode"
Aug 30, 2010 12:32:02 AM com.jme.scene.Node attachChild
INFO: Child "b3" attached to this node "myNode"
Aug 30, 2010 12:32:02 AM com.jme.scene.Node attachChild
INFO: Child "s2" attached to this node "myNode"
Aug 30, 2010 12:32:02 AM com.jme.scene.Node attachChild
INFO: Child "s1" attached to this node "myNode"
Aug 30, 2010 12:32:02 AM com.jme.scene.Node attachChild
INFO: Child "myNode" attached to this node "rootNode"
Aug 30, 2010 12:32:04 AM TestApp.BaseSimpleGame cleanup
INFO: Cleaning up resources.
Aug 30, 2010 12:32:04 AM TestApp.BaseGame start
INFO: Application ending.
BUILD SUCCESSFUL (total time: 8 seconds)



I have built a JNLP launcher for the application, and when it goes to launch file, nothing happens.  If I open up the system processes, I can see my game running under javaw.exe, but I can't see anything.  When I use the command prompt to run it, I get the following error message:


Exception in thread "main" java.lang.NoClassDefFoundError: com/jme/app/SimpleGame
   at java.lang.ClassLoader.defineClass1(Native Method)
   at java.lang.ClassLoader.defineClass(Unknown Source)
   at java.security.SecureClassLoader.defineClass(Unknown Source)
   at java.net.URLClassLoader.defineClass(Unknown Source)
   at java.net.URLClassLoader.access$000(Unknown Source)
   at java.net.URLClassLoader$1.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Caused by: java.lang.ClassNotFoundException: com.jme.app.SimpleGame
   at java.net.URLClassLoader$1.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClassInternal(Unknown Source)
   ... 12 more
Could not find the main class: TestApp.MyGame. Program will exit



Now I found another topic that was similar at http://jmonkeyengine.com/forum/index.php?topic=10417.0 , however this doesn't help me as I am not inside the application (NetBeans or Eclipse, I have tried both).  I have my VM options set correctly and can see the application run within the NetBeans environment itself.  I am lost and have spent almost a week trying to figure it out without any luck.  At least before when I used the JNLP launcher on the web it gave me errors, but now nothing happens during launch.

I have watched the videos over and over and have reinstalled NetBeans and Eclipse many times with the same output.  I can easily launch another JAR file using a JNLP launcher, but I didn't compile the JAR myself.

I am getting a weird impression that I am not compiling correctly in Eclipse or NetBeans when I make my .JAR file.  I could understand if NetBeans threw an exception, but it doesn't.

Any help would be greatly appreciated.

Windows XP, SP2
Intel Core 2 Duo, 3.16 GHz 3.17 GHz
2.00 GB of RAM

try exporting jme and add it to the classpath, as it seems it's missing there

Thanks for the information, however I am still seeing the same thing.  The only difference I see now is that I have the Monkey Image when I try running my game in NetBeans, I didn't have it there before.  Let me see if I can walk through the process here and show some screen shots of what I have.



Overview:

I created a new Package called "TestApp".  Under the "TestApp" package, I have my only class I created called "MyGame".  The class is basically the Tutorial 2 for HelloNode, but with my own rendition.



Libraries:

In NetBeans, I right click on my project and go to "Properties", then select "Libraries" on the left.  I added all of the main libraries here including

(jme-audio.jar, jme-awt.jar, jme-collada.jar, jme-editors.jar, jme-effets.jar, jme-font.jar, jme-gamestates.jar, jme-model.jar, jme-ogrexml.jar, jme-scene.jar, jme-swt.jar, jme-terrain.jar, jme-colladabinding-src.jar, jme-colladabinding.jar, gluegen-rt.jar, jogl.jar, jorbis-0.0.17.jar, junit-4.1.jar, jinput.jar, lwjgl.jar, lwjgl_util.jar, lwjgl_util_applet.jar and jme.jar which was compile in Eclipse after following the setup)



The JME.JAR was created in Eclipse, I simply ran through the Eclipse setup and watched the videos on YouTube and right clicked the jme folder and did an export.  I added all libraries using "Relative Path".



VM options:


-Djava.library.path="C:/jME/lib/lib/lwjgl/native/macosx/;C:/jME/lib/lib/jogl/native/macosx/;C:/jME/lib/lib/lwjgl/native/linux/;C:/jME/lib/lib/jogl/native/linux_amd64/;C:/jME/lib/lib/jogl/native/linux_i586/;C:/jME/lib/lib/lwjgl/native/solaris/;C:/jME/lib/lib/jogl/native/solaris_i586/;C:/jME/lib/lib/lwjgl/native/windows/;C:/jME/lib/lib/jogl/native/windows_amd64/;C:/jME/lib/lib/jogl/native/windows_i586/"



Project Structure:


TestApp
     Souce Packages
          testapp
               MyGame.java
     Test Packages
          <default package>
     Libraries
          jme-audio.jar
          jme-awt.jar
          jme-collada.jar
          jme-editors.jar
          jme-effects.jar
          jme-font.jar
          jme-gamestates.jar
          jme-model.jar
          jme-ogrexml.jar
          jme-scene.jar
          jme-swt.jar
          jme-terrain.jar
          jme-colladabinding-src.jar
          jme-colladabinding.jar
          gluegen-rt.jar
          jogl.jar
          jorbis-0.0.17.jar
          junit-4.1.jar
          jinput.jar
          lwjgl.jar
          lwjgl_util.jar
          lwjgl_util_applet.jar
          jme.jar
          JDK 1.6 (default)
     Test Libraries
 jme-audio.jar
          JUnit 3.8.2 - junit-3.8.2.jar
          JUnit 4.5 - junit-4.5.jar
          jme-audio.jar
          jme-awt.jar
          jme-collada.jar
          jme-editors.jar
          jme-effects.jar
          jme-font.jar
          jme-gamestates.jar
          jme-model.jar
          jme-ogrexml.jar
          jme-scene.jar
          jme-swt.jar
          jme-terrain.jar
          jme-colladabinding-src.jar
          jme-colladabinding.jar
          gluegen-rt.jar
          jogl.jar
          jorbis-0.0.17.jar
          junit-4.1.jar
          jinput.jar
          lwjgl.jar
          lwjgl_util.jar
          lwjgl_util_applet.jar
          jme.jar



Manifest Contents:


Manifest-Version: 1.0
Class-Path: lib/jme.jar
Main-Class: TestApp.MyGame



At this point in time, I can click on the "Run Main Project" and the game works without any issues.  I have included the option to create a JNLP file as well, but even in the NetBeans program when I run it, the java window loads, I click on the "Run" button and nothing happens.  At this point, if I look at my system processes, I can see the javaw.exe running taking up about 50 Megs of Ram.

Once my TestApp.jar file is extracted, I copy everything in my /dist folder to "C:game".  I open up the command prompt and type in the following lines to get the error;


cd c:game
java -jar TestApp.jar



and this is where I see my error list.  I apologize for being somewhat ignorant to this system, but I have been spending almost 6 hours a day just trying to get this thing to work.  I have already learned a lot about the system, but it is almost like I feel I am not exporting/creating the JAR file correctly, whether it is because my manifest file is incorrect or my class path.  I thought I could import the JME.JAR file under my libraries and add the class-path: jme.jar to my manifest file and it would all work out...but still having issues with it.

I tested another application at www.wurmonline.com to just verify that there isn't anything wrong with my Java installation, and that web application runs fine via a JNLP file.

Any more guidance on this issue would be a blessing.  I have posted a lot of info above in hopes someone will point a finger and tell me I did something wrong.

Thanks again.

I am going to try and start over again.  I am reading all over that the JDK should be in a "C:JDK" folder as if it is under "Program Files", this could cause issues because of the space.



I have uninstalled java JRE, JDK, Java Runtime, NetBeans and Eclipse.  I am thinking I am going to get rid of everything Java and start over again.  If anyone can see any issues from what I am doing, please let me know.  I am going to keep following the tutorials until I get it.

What I have done is to put things like jMonkeyEngine and other Java libraries in separate directories in c:Java



I have jMonkeyEngine in c:JavaJME2



I then added them all to the classpath.  I am personally writing everything using Notepad++, as it means I can use it at university and at home.



Hope that helps.

I think I am getting a little closer, but I need a second opinion.  Please see my error now…



Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: [Lorg/lwjgl/opengl/DisplayMode;....



It seems in my "jME2-RUN -lwjgl_util.jar, I see an address of "org/lwjgl/opengl/DisplayMode", and the exception is throwing a "Lorg/lwjgl/opengl/DisplayMode".  Think this is a typo?  I am assuming yes, but how the heck do I change it...I am thinking I need to go back and change it, then recompile it so I have that spare there....however I don't know if it would be easier changing the code.  Any thoughts would help.

Thanks.

How do I fix this?