Re: Initialising Joal
Posted by
Xerxes Rånby on
Apr 08, 2014; 10:30am
URL: https://forum.jogamp.org/Initialising-Joal-tp4032105p4032114.html
2014-04-08 12:14, TheLittleP [via jogamp] skrev:
> I don't truly understand why the built in mechanism doesn't work either.
>
> I have placed the natives in the same jar in the /natives/ directory as the fat jar method explains yet when it comes to initialisation the built in mechanism results in searching the user directory and the system path and fails.
>
> Before my modifications I found that the TempJarCache isn't initialised. I concluded that this must have something to do with Platform not being initialised with the system class loader. My implementation of ClassLoader downloads jars to a permanent cache on a demand basis giving full privileges to the classes.
>
> My workaround has been to alter JNILibLoaderBase so that in initialises TempJarCache and extracts the native that has been called for, loads it and then returns success. This works very well.
>
> Believe me when I would have preferred to use the built in mechanism as I have spent hours trying to solve this.
>
> Regards
> P
>
Please post a Short, Self Contained, Correct (Compilable), Example
http://www.sscce.org/demonstrating the issue with the built in mechanism.
Cheers
Xerxes