OSX, HelloWorld & lwjgl.jnilib

Hi all,



I’m trying to build and run the HelloWorld example in the Getting Started document, but it crashes as soon as it starts. I’m using a precompiled JME 0.8 and precompiled lwjgl0.94 for OsX. HelloWorld compiles OK, but runtime errors are as follows:


Mar 1, 2005 1:21:32 PM com.jme.app.BaseGame start
INFO: Application started.
Mar 1, 2005 1:21:32 PM com.jme.system.PropertiesIO <init>
INFO: PropertiesIO created
Mar 1, 2005 1:21:32 PM com.jme.system.PropertiesIO load
INFO: Read properties
java.lang.UnsatisfiedLinkError: getNativeLibraryVersion
   at org.lwjgl.Sys.getNativeLibraryVersion(Native Method)
   at org.lwjgl.Sys.initialize(Sys.java:130)
   at org.lwjgl.Sys.<clinit>(Sys.java:96)
   at org.lwjgl.opengl.Display.<clinit>(Display.java:93)
   at com.jme.system.lwjgl.LWJGLPropertiesDialog.<init>(Unknown Source)
   at com.jme.app.AbstractGame.getAttributes(Unknown Source)
   at com.jme.app.BaseGame.start(Unknown Source)
   at HelloWorld.main(HelloWorld.java:19)
Mar 1, 2005 1:21:34 PM com.jme.app.SimpleGame cleanup
INFO: Cleaning up resources.
Mar 1, 2005 1:21:34 PM com.jme.input.InputSystem getKeyInput
WARNING: KeyInput is null, insure that a call to createInputSystem was made before getting the devices.
Mar 1, 2005 1:21:34 PM com.jme.input.InputSystem getMouseInput
WARNING: MouseInput is null, insure that a call to createInputSystem was made before getting the devices.
Mar 1, 2005 1:21:34 PM com.jme.app.BaseGame start
INFO: Application ending.



Here's the build command-line:

javac -classpath /Users/blablabla/TESTS/lwjgl.jar:/Users/blablabla/TESTS/jme.jar:/Users/blablabla/TESTS/ /Users/blablabla/TESTS/HelloWorld.java



Please bear with my lack of experience, but i've read many posts in the forum but without success.

Also, can anyone tell me the difference between .so and .jnilib ?

Thanks in advance.

Not familiar with Mac stuff (hopefully I’ll get something soon :slight_smile: ). But the .jnilib file is the library that connects to your native graphics drivers (similar to .dll in Windows). This needs to be in your System path (whatever the equivalent in Mac).



.so is for Linux.