Hey everyone.
Lemme preface this by saying, long time casual programmer, but I haven't been around Java as long as I'd like to.
Case in point, if I've made a blatantly foolish mistake, you'll understand why.
Anyways;
I'm trying Lesson 1, and getting nowhere fast. I make a new Java Application, named 'Lesson 1'. I copy/paste the code from the tutorial, preserving the 'package Lesson1;' declaration. I build it, and it builds. But when I run it, well, I get this:
run:
Oct 16, 2009 3:12:36 AM com.jme.app.BaseGame start
INFO: Application started.
Oct 16, 2009 3:12:37 AM com.jme.system.PropertiesGameSettings <init>
INFO: PropertiesGameSettings created
Oct 16, 2009 3:12:37 AM com.jme.system.PropertiesGameSettings load
WARNING: Could not load properties. Creating a new one.
Oct 16, 2009 3:12:37 AM com.jme.app.AbstractGame getAttributes
SEVERE:
Native library not set - go to
http://www.jmonkeyengine.com/wiki/doku.php?id=no_lwjgl_in_java.library.path
for details.
java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1709)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1028)
at org.lwjgl.Sys$1.run(Sys.java:72)
at java.security.AccessController.doPrivileged(Native Method)
at org.lwjgl.Sys.doLoadLibrary(Sys.java:65)
at org.lwjgl.Sys.loadLibrary(Sys.java:81)
at org.lwjgl.Sys.<clinit>(Sys.java:98)
at org.lwjgl.opengl.Display.<clinit>(Display.java:129)
at com.jme.system.lwjgl.LWJGLPropertiesDialog$ModesRetriever.run(LWJGLPropertiesDialog.java:682)
at com.jme.app.AbstractGame.getAttributes(AbstractGame.java:252)
at com.jme.app.BaseGame.start(BaseGame.java:67)
at Lesson1.Lesson1.main(Lesson1.java:25)
If you need any other info, please let me know. I'm quite confident I followed the setup steps correctly (4th time's a charm, right?) I'm using NetBeans 6.7.1.
Help?
Hi!
I had similar problems before, but I don't remember the exact solution to that problem. Have you done everything which is said in this post http://www.jmonkeyengine.com/forum/index.php?topic=12167.0 ? That was my troubleshooting post 
One error I made was having the wrong path to the natives directories. I think in the tutorial it was something with "win32" as the catalogue, but nowdays it's called "windows". Another thing you can test is to have the run library for JME in the compile tab instead of the run tab in the project properties.
good luck!
Hmm,…let me think. oh what this, an URL specified in the exception!?!
Native library not set - go to
http://www.jmonkeyengine.com/wiki/doku.php?id=no_lwjgl_in_java.library.path
for details.
Visting this might tell you to add that as vm-arg:
-Djava.library.path="**ThePathTojME2**jME2liblwjglnativewindows"
(the path might not be correct!Check to find in jme2 the native-lib-windows directory and use that)
This is a quite common problem that, I would bet, everyone faced already :D
I hope this doesn't offend anyone but I think part of the problem is from the netbeans guide (it is a little confusing for new comers when talking about the VM options for the native libraries.
The first time it mentions the VM it says to enter…
-Djava.library.path="ThePathTojME2jME2liblwjglnativewindows";"ThePathToJme2PhysicsSVNimplodelib
Which is nice and clear about what additional detail the user needs to add to get it right.
However the second time it's mentioned in the section about starting your own project it writes it as…
-Djava.library.path="jME2jME2liblwjglnativewindows";"jME2jME2Physicsimplodelib"
Because the second time it's written is different from the first without explicitly stating to add the path I added it to my VM options as it was and got the exact same issue as the OP.
It wasn't until I had a read around on the forums and basically took a guess that I found out all I was missing was the drive letter and got it working (cue victory dance).
I think it might help if the second VM in the guide was changed so it's the same as the first:
-Djava.library.path="ThePathTojME2jME2liblwjglnativewindows";"ThePathToJme2PhysicsSVNimplodelib