Login  Register

Re: Return of the "java.lang.UnsatisfiedLinkError: Can't load library: /System/Library/Frameworks/gluegen-rt.Framework/gluegen-rt" exception...

Posted by Sven Gothel on Jun 04, 2015; 10:48am
URL: https://forum.jogamp.org/Return-of-the-java-lang-UnsatisfiedLinkError-Can-t-load-library-System-Library-Frameworks-gluegen-rt-tp4034549p4034601.html

On 06/04/2015 12:42 PM, Sven Gothel wrote:

> On 06/03/2015 10:49 PM, Wade Walker [via jogamp] wrote:
>>     gouessej wrote
>>     Shouldn't we put this thing into our own code base?
>>
>> I had thought about submitting a patch for this, but I wasn't sure what to
>> think about working around an Eclipse bug inside JOGL. It's only one extra
>> line in the user's URL resolver, so not the end of the world. I just need to
>> document it better :)
>
> Mind that URL [re-]creation costs one DNS lookup.
>
Hence I propose an API change (for the next minor+ release) as follows:

-  interface JarUtil.Resolver {
-     URL resolve( URL url ) {

+  interface JarUtil.Resolver {
+     Uri resolve( Uri uri ) {

JarUtil.Resolver.resolve(..) is being called
in a method which already transform the URL to Uri,
hence we could rely solely on Uri w/o DNS lookup
while still supporting UTF-8 character escaping.

~Sven



signature.asc (828 bytes) Download Attachment