From a258a199da9ba1351d946ad0379c54e8481e931b Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 22 Sep 2011 01:40:28 +0200 Subject: gluegen-rt lib loading: Moved to Platform static init incl. TempJarCache.bootstrapNativeLib(..) usage - Moving to Platform solves former interdependencies between GlueGenJNILibLoader/Platform - TempJarCache is being setup w/ bootstraping the gluegen-rt native lib jar file. Interesting here is that when using Oracle's JRE w/ Applets/JNLP the current dbg output is: gluegen-rt: url-root http://risa/deployment/test/jau02s/jar/ gluegen-rt: nativeJarURL jar:http://risa/deployment/test/jau02s/jar/gluegen-rt-natives-linux-amd64.jar!/ gluegen-rt: nativeJar /home/sven/.java/deployment/cache/6.0/49/3c6d1e31-2c90f42e IE the JRE implementation already deduces the online link to the Applet/JNLP cache. This makes the implementation much simpler, ie. same for application and Applets/JNLP. Have to verify w/ other Java impl. sure - and add same logic for the JOGL part. --- src/java/com/jogamp/common/nio/AbstractBuffer.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/java/com/jogamp/common/nio/AbstractBuffer.java') diff --git a/src/java/com/jogamp/common/nio/AbstractBuffer.java b/src/java/com/jogamp/common/nio/AbstractBuffer.java index 90e31f8..322a617 100644 --- a/src/java/com/jogamp/common/nio/AbstractBuffer.java +++ b/src/java/com/jogamp/common/nio/AbstractBuffer.java @@ -32,10 +32,8 @@ package com.jogamp.common.nio; import com.jogamp.common.os.*; -import com.jogamp.gluegen.runtime.GlueGenJNILibLoader; import java.nio.Buffer; -import java.nio.ByteBuffer; /** * @author Sven Gothel @@ -49,7 +47,7 @@ public abstract class AbstractBuffer implements Native protected int position; static { - GlueGenJNILibLoader.loadGlueGenRT(); + Platform.initSingleton(); // loads native gluegen-rt library } /** -- cgit v1.2.3