LWJGL/lwjgl

OS X java 6 support

jikuja opened this issue · 1 comments

I'm guessing that a6bb6e3 broke java 6 support with OS X. Following stack from 2.9.2-nightly-20140822

java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)
        at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
Caused by: java.lang.UnsatisfiedLinkError: Can't load library: /Users/jikuja/ftb/FTBLite2/natives/liblwjgl.jnilib
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1712)
        at java.lang.Runtime.load0(Runtime.java:770)
        at java.lang.System.load(System.java:1019)
        at org.lwjgl.Sys$1.run(Sys.java:70)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.lwjgl.Sys.doLoadLibrary(Sys.java:66)
        at org.lwjgl.Sys.loadLibrary(Sys.java:95)
        at org.lwjgl.Sys.<clinit>(Sys.java:112)
        at net.minecraft.client.Minecraft.func_71386_F(Minecraft.java:2458)
        at net.minecraft.client.main.Main.main(SourceFile:37)
        ... 6 more

I ran into a similar issue when building lwjgl3. This was my fix.

Looking at your provided stack trace, these lines of Sys#doLoadLibrary(String) would benefit from something similar to my or @mikiobraun's fix.

Similar: jblas-project/jblas#19 and xerial/snappy-java#6