Stuck of 1st Tutorial.. Not sure of the problem

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.


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:

Oct 16, 2009 3:12:36 AM 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 getAttributes

Native library not set - go to
for details.
java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
        at java.lang.ClassLoader.loadLibrary(
        at java.lang.Runtime.loadLibrary0(
        at java.lang.System.loadLibrary(
        at org.lwjgl.Sys$
        at Method)
        at org.lwjgl.Sys.doLoadLibrary(
        at org.lwjgl.Sys.loadLibrary(
        at org.lwjgl.Sys.<clinit>(
        at org.lwjgl.opengl.Display.<clinit>(
        at com.jme.system.lwjgl.LWJGLPropertiesDialog$
        at Lesson1.Lesson1.main(

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.



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 ? That was my troubleshooting post :wink:

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
for details.

Visting this might tell you to add that as vm-arg:
(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…


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…


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: