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

Possibility to put libs to the classpath #26

Open
Vampire opened this issue Mar 16, 2018 · 0 comments
Open

Possibility to put libs to the classpath #26

Vampire opened this issue Mar 16, 2018 · 0 comments

Comments

@Vampire
Copy link

Vampire commented Mar 16, 2018

Please provide the possibility to have libs non-transitively on the classpath that will not end up on the module path.
In my concrete situation we use com.github.sarxos:webcam-capture:0.3.12 which depends on com.nativelibs4java:bridj:0.7.0.
bridj tries to load resources from other modules via Class#getResource and if that fails it tries to use ClassLoader#getResource.
The latter would work properly as it is an automatic module and tries to get a resource from an automatic module, but unfortunatley there is a bug in bridj that makes the class loader part break (they do not strip the leading slash of the path).
This is (besides fixing the bug) only solvable by removing bridj from the module path and adding it to the classpath instead, as unnamed modules do not have the restriction automatic and named modules have, that Class#getResource only works for resources within the own module.

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

No branches or pull requests

2 participants