Skip to content

Conversation

@gamerson
Copy link

Fixes #153

@buildhive
Copy link

Olivier Chafik » nativelibs4java #32 FAILURE
Looks like there's a problem with this pull request
(what's this?)

@ochafik
Copy link
Member

ochafik commented Mar 5, 2015

Hi @gamerson ,

Thanks for this PR!
Could you please tell me in which circumstances you're reaching that IOException? (not sure we should avoid throwing, maybe a well-placed catch or a proper handling of a different url scheme could be better?)

Cheers

@gamerson
Copy link
Author

gamerson commented Mar 9, 2015

Hey @ochafik

I was seeing this exception when trying to use jnaerator runtime inside of a OSGi bundle executing in an OSGi framework like equinox. In OSGi the URL prefix is "bundle://" So you would need a new if block that supports "bundle:" prefix. However, like I was mentioning, everything seems to work ok even when the URLs can't be listed. The library is still able to load using the fallback loader mechanisms.

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

Successfully merging this pull request may close these issues.

IOException when loading a native library inside an OSGI bundle using jna.library.path

3 participants