Bug 775 - Look for native's jar using classloader
Summary: Look for native's jar using classloader
Alias: None
Product: Gluegen
Classification: JogAmp
Component: core (show other bugs)
Version: 2
Hardware: All all
: --- normal
Assignee: Sven Gothel
Depends on:
Reported: 2013-07-06 04:53 CEST by olamedia
Modified: 2013-07-07 16:11 CEST (History)
0 users

See Also:
Type: ---
SCM Refs:
Workaround: ---


Note You need to log in before you can comment on or make changes to this bug.
Description olamedia 2013-07-06 04:53:00 CEST
Currently JNILibLoaderBase uses classloaders only to look for .so libraries (and only system classloader).
It should use classloader to look for a packed .jar version too and try to use thread's classloader to look for an .so.
At the moment it tries only fixed path to jar, relative to application basepath.
Comment 1 Sven Gothel 2013-07-07 16:11:44 CEST
No it should not, this class is dedicated to load native libraries utilizing many diff. strategies.
TempJarCache's find*() methods match ClassLoader's interface and can be utilized
in a custom CL, as mention in IRC already.