Hello Johan,

> 
> Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: no 
> gluegen-rt in java.library.path
>         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
>         at java.lang.Runtime.loadLibrary0(Runtime.java:822)
>         at java.lang.System.loadLibrary(System.java:993)
>         at 
> com.sun.gluegen.runtime.NativeLibLoader.loadLibraryInternal(NativeLibLoader.java:102)
> 
> 
> it would be a trivial source modification to let it try /usr/lib/jni/ on 
> debian. this would reduce the load
> on any users of this package.

If I understand correctly, you would like to have something like in the
jogl code ?

---
jogl-1.1.1.orig/jogl/src/classes/com/sun/opengl/impl/NativeLibLoader.java   
2007-07-20 17:06:04.000000000 +0200
+++ jogl-1.1.1/jogl/src/classes/com/sun/opengl/impl/NativeLibLoader.java
2008-12-29 13:42:13.000000000 +0100
@@ -186,7 +186,9 @@
           throw (UnsatisfiedLinkError) new
UnsatisfiedLinkError().initCause(e);
         }
     } else {
-      System.loadLibrary(libraryName);
+               String javaLibPath =
System.getProperty("java.library.path") + File.pathSeparator +
"/usr/lib/jni" + File.pathSeparator + "/usr/lib64/jni";
+               System.setProperty("java.library.path", javaLibPath);
+               System.loadLibrary(libraryName);
     }
   }
 }

---

Regards,
Sylvestre






-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to