Today I stumbled upon jME and after deciding it looked good, installed it following the instructions for NetBeans. After installing it I tried to follow the first tutorial (http://www.jmonkeyengine.com/wiki/doku.php?id=jme2-creating_your_first_app_with_simplegame) and even with the same exact code as in the tutorial and even naming my class the same, when trying to run the program I got these errors copied directly from NetBean's console:
run:
java.lang.NoClassDefFoundError: test/Lesson1
Caused by: java.lang.ClassNotFoundException: test.Lesson1
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)
Exception in thread "main"
Exception in thread "main" Java Result: 1
BUILD SUCCESSFUL (total time: 2 seconds)
I'm not too sure what that means, so any help is greatly appreciated. Thanks in advance.
It means it cant find the specified class.
erm… that wasn't very helpful…
Well you wanted to know that it means…? :x
Okay, let me rephrase my original question. Why didn't the tutorial work if i followed it exactly, and if someone understands the errors, do they know how to fix or find what I did wrong so the tutorial will work?
well, its a netbeans problem, did you create a package test with the class Lesson1 in it?
Did it compile fine?
Did you try to run a non-jME HelloWorld?
Make sure you run the jME SVN project, the test classes are not created until the first run…