Bug#668821: libjogl2-java: jogl2 or gluegen2 forget to load one of the native lib
Sylvestre Ledru
sylvestre at debian.org
Sat Apr 14 17:05:07 UTC 2012
Package: libjogl2-java
Version: 2.0-rc5-1
Severity: important
Hello me,
With the following code:
----
import javax.media.opengl.awt.GLCanvas;
public class plop {
public static void main(String[] args) throws Exception {
// System.loadLibrary("gluegen2-rt");
GLCanvas c = new GLCanvas();
}
}
----
it is failing with
javac -cp /usr/share/java/jogl2.jar:/usr/share/java/gluegen2-rt.jar plop.java
java -cp /usr/share/java/jogl2.jar:/usr/share/java/gluegen2-rt.jar:. plop
Exception in thread "main" java.lang.UnsatisfiedLinkError: jogamp.common.jvm.JVMUtil.initialize(Ljava/nio/ByteBuffer;)Z
at jogamp.common.jvm.JVMUtil.initialize(Native Method)
at jogamp.common.jvm.JVMUtil.<clinit>(JVMUtil.java:58)
at com.jogamp.common.os.Platform.<clinit>(Platform.java:215)
at javax.media.opengl.GLProfile.<clinit>(GLProfile.java:81)
at javax.media.opengl.awt.GLCanvas.<init>(GLCanvas.java:236)
at javax.media.opengl.awt.GLCanvas.<init>(GLCanvas.java:186)
at javax.media.opengl.awt.GLCanvas.<init>(GLCanvas.java:176)
at plop.main(plop.java:5)
Uncommenting the load fixes the issue.
Thanks to Calixte Denizet for the test case.
Sylvestre
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (600, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.1.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages libjogl2-java depends on:
ii libgluegen2-rt-java 2.0-rc5-1
ii libjogl2-jni 2.0-rc5-1
libjogl2-java recommends no packages.
Versions of packages libjogl2-java suggests:
pn libjogl2-java-doc <none>
-- no debconf information
More information about the pkg-java-maintainers
mailing list