Skip to content
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

Load dylib dependency from the jar archive #62

Open
Tolsi opened this issue Nov 22, 2019 · 1 comment
Open

Load dylib dependency from the jar archive #62

Tolsi opened this issue Nov 22, 2019 · 1 comment

Comments

@Tolsi
Copy link

Tolsi commented Nov 22, 2019

Hi, I can't load the dylib native dependency packed in jar package because of this line

If System.mapLibraryName(libName) returns a .dylib filename then we replace it to .jnilib and returns. It looks like a bug, why we change the native lib extension to different if it supported by the runtime system and was returned by it. It works when I specify java.library.path with the .dylib lib.

@gnodet
Copy link
Member

gnodet commented May 5, 2020

I suppose we could change the Library.map method so that it returns a String[] and iterate on this array in the Library.doLoad method.
@Tolsi Would you mind creating a PR for that ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants