From e2e8e5258f79a25fdc6dad9392e290a843fe3627 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Fri, 7 Dec 2001 08:30:31 +0000 Subject: Removed link-time dependency on JAWT to solve PATH problems --- gl4java/GLContext.java.skel | 73 +++++++++++++++++++++++++++++++++++---------- 1 file changed, 58 insertions(+), 15 deletions(-) (limited to 'gl4java/GLContext.java.skel') diff --git a/gl4java/GLContext.java.skel b/gl4java/GLContext.java.skel index 5ee7dc3..bec29b4 100644 --- a/gl4java/GLContext.java.skel +++ b/gl4java/GLContext.java.skel @@ -10,8 +10,10 @@ import gl4java.jau.awt.WinHandleAccess; import java.awt.*; import java.applet.Applet; import java.awt.event.*; +import java.io.*; import java.lang.reflect.*; import java.security.*; +import java.util.*; /** * The base manager class for the OpenGL language mapping for Java ! @@ -811,20 +813,6 @@ public class GLContext extends Object AccessController.doPrivileged(new PrivilegedAction() { public Object run() { - /* Try to load jawt.dll ahead of time to prevent - problems on Sun JDK 1.3 and greater. Loading the - version of the native library which uses JAWT - causes run-time link errors if jre/lib/ or - jre/bin are not in $PATH. A more clean solution - might be to explicitly look up the JAWT functions, - but that would require looking up the full path to - libjawt.so/jawt.dll, which is a pain as it's - automatically done by the JDK's libraries. */ - try { - System.loadLibrary("jawt"); - } catch (UnsatisfiedLinkError e) { - } - /* load libs */ int libNumber = 0; String _libName = null ; @@ -857,6 +845,12 @@ public class GLContext extends Object for(libNumber=0; libNumber