The User Guide section of the wiki refers to this tutorial for setting up jME in NetBeans,
http://www.jmonkeyengine.com/wiki/doku.php?id=setting_up_netbeans_6.7_for_jme_2.0
all looks well until I try to follow it. Here's the problems I encountered (with NetBeans 6.7.1).
- Downloading
The Google Code downloading list only provides three things: Stable, StableDistribution, and SWT. So I download Stable and StableDistribution, extract them so that I have such directory structure:
jME2jME2junit
jME2jME2lib
jME2jME2libjme.jar
jME2jME2src
jME2jME2-distjme.jar
- JARs libraries on Classpath
The tutorial wants to add jME2lib*.jar and jME2jME_2.0.jar, but there is nothing in the jME root folder. jME folder only holds three more folders: junit, lib, and src.
So I add jME2lib*.jar to the library list.
Then it goes on to add the "native" libraries that should have been in jME2libnatives. But this "natives" folder doesn't exist, either.
EDIT I've also tried to specify "-Djava.library.path=jME2_homelibliblwjglnativewindows" in the Project Properties window, under VM options. The same happens below.
- HelloWorld code sample
Using "Run Project" results in the following error:
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: [Lorg/lwjgl/opengl/DisplayMode;
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
....and long list of others
Caused by: java.lang.ClassNotFoundException: org.lwjgl.opengl.DisplayMode
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:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 28 more
BUILD STOPPED (total time: 27 seconds)
NetBeans shows the program to be running, but nothing happens at all except a non-advancing RUN progress bar in NetBeans. Once I stop that, it shows the BUILD STOPPED line of message.
Any ideas?