UnsatisfiedLinkError on MacOS

Started by akoller, February 25, 2008, 15:14:22

Previous topic - Next topic

akoller

Hi all,

when I just downloaded LWJGL and tried to run one of the test programs (on MacOS 10.5 with Apple Java 1.6 beta), I got the following error message:

Exception in thread "main" java.lang.UnsatisfiedLinkError: /Users/alex/Downloads/lwjgl-1.1.4/native/macos/liblwjgl.jnilib:
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
(etc.)


Notice that Java does find the liblwjgl.jnilib file: It doesn't say "couldn't find liblwjgl.jnilib" as it would if the java.library.path hadn't been set correctly.

This problem only occurs when I use Apple Java 1.6 beta. Whenever I use Java 1.5, LWJGL seems to run properly. On the other hand, attempts to run the demo with SoyLatte crash with the following error:

Exception in thread "main" java.lang.LinkageError: Unknown platform: Darwin
        at org.lwjgl.LWJGLUtil.getPlatform(LWJGLUtil.java:291)
        at org.lwjgl.Sys.createImplementation(Sys.java:111)
        at org.lwjgl.Sys.<clinit>(Sys.java:100)
        at org.lwjgl.opengl.Display.<clinit>(Display.java:111)
(etc.)


I'm posting this here primarily so people who are confused by the same error messages will know to use Java 1.5 for now. But if LWJGL could be made to work on some version of Java 1.6 that runs on the Mac at some point, that would be awesome too.

- Alexander



Matzon

Java 1.6 isn't supported on mac. The problem is that Java 1.6 on Mac is 64bit only. We have managed to get it to compile, but we wont officially support this until 1.6 has been released.

erock

I see that Java 6 has been officially released, though still only 64bit. Any idea what this will mean for JWJGL compatibility?

Matzon

2.0 beta should work on java 6 / mac.

lobsterman

hi all,

as far as i have gathered from quicktime for java groups, both JNI and QT support are NOT functional in java 6

elias4444

It appears to be working fine for me.  :-\
=-=-=-=-=-======-=-=-=-=-=-
http://www.tommytwisters.com