diff options
author | Sven Gothel <[email protected]> | 2010-04-19 01:40:20 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-04-19 01:40:20 +0200 |
commit | a01cb3d59715a41153380f1977ec75263b762dc6 (patch) | |
tree | 0fc31f9e9b60d23c088ae8049b5c8d456398bc9f /src/java/com/jogamp/common/jvm/JVMUtil.java | |
parent | c7630f35befa1b8dbd365984f08c4efbc04488c1 (diff) |
Importing files from JOGL (preserving history)
git mv src/nativewindow/native/JVM_Tool.c src/native/common/JVM_Tool.c
git mv src/nativewindow/classes/com/jogamp/nativewindow/impl/NativeLibLoaderBase.java src/java/com/jogamp/common/jvm/JNILibLoaderBase.java
git mv src/nativewindow/classes/com/jogamp/nativewindow/impl/jvm/JVMUtil.java src/java/com/jogamp/common/jvm/JVMUtil.java
git mv src/nativewindow/classes/com/jogamp/nativewindow/impl/NWReflection.java src/java/com/jogamp/common/util/ReflectionUtil.java
Adding own JogampRuntimeException and Debug class
Diffstat (limited to 'src/java/com/jogamp/common/jvm/JVMUtil.java')
-rw-r--r-- | src/java/com/jogamp/common/jvm/JVMUtil.java | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/java/com/jogamp/common/jvm/JVMUtil.java b/src/java/com/jogamp/common/jvm/JVMUtil.java index df703aa..833e907 100644 --- a/src/java/com/jogamp/common/jvm/JVMUtil.java +++ b/src/java/com/jogamp/common/jvm/JVMUtil.java @@ -30,10 +30,12 @@ * SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. */ -package com.jogamp.nativewindow.impl.jvm; +package com.jogamp.common.jvm; import java.nio.ByteBuffer; -import com.jogamp.nativewindow.impl.*; +import com.jogamp.common.nio.Buffers; +import com.jogamp.common.impl.Debug; +import com.jogamp.gluegen.runtime.NativeLibLoader; /** * Currently this tool works around the Hotspot race condition bugs: @@ -50,9 +52,10 @@ public class JVMUtil { private static final boolean DEBUG = Debug.debug("JVMUtil"); static { - NativeLibLoaderBase.loadNativeWindow("jvm"); + // JNILibLoaderBase.loadLibrary("jvm", null, false); + NativeLibLoader.loadGlueGenRT(); - ByteBuffer buffer = InternalBufferUtil.newByteBuffer(64); + ByteBuffer buffer = Buffers.newDirectByteBuffer(64); if( ! initialize(buffer) ) { throw new RuntimeException("Failed to initialize the JVMUtil "+Thread.currentThread().getName()); } |