-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System.mapLibraryName returns suffix 'dylib' and not 'jnilib' using JDK 7 on OS X #19
Comments
Hi, so did I understood correctly, the expected name for DLLs has changed between JDK 6 and 7? dylib for JDK 7 and jnilib for JDK 6? |
Yes, on JDK7 it looks for the native libraries with the .dylib extension which resulted in an UnsatisfiedLinkError. Looking at other projects affected, the simplest solution seems to be just to include copies with both versions of the file extension. |
Ah I see... But given that I already have all those really big shared libs in there, I think I'd rather hack something together to copy the library if that happens... . |
I just committed a patch which detects when the library name ends in .dylib and uses the .jnilib ending instead. Works on my colleagues Mac with Java 7. Let me know if it works for you as well. |
Yep! Works for me too. |
alright, awesome! |
I'm not sure what the best solution is for handling this, but for me the easiest solution was to re-package with a second copy of all the jnlib libraries using the alternate suffix.
For similar see: xerial/snappy-java#6
The text was updated successfully, but these errors were encountered: