diff options
author | Kenneth Russel <[email protected]> | 2001-12-02 19:45:01 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2001-12-02 19:45:01 +0000 |
commit | 5a67c0f5302dbd445d744450db58d1122096b742 (patch) | |
tree | 55998a4a8395a9deb005bbf5ac60afed905e43fa /gl4java | |
parent | 78429f3bb42a4fdf68711191d042523a08e57fcb (diff) |
Fixed run-time link problems with JAWT
Diffstat (limited to 'gl4java')
-rw-r--r-- | gl4java/GLContext.java.skel | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gl4java/GLContext.java.skel b/gl4java/GLContext.java.skel index 50aa7c3..5ded66d 100644 --- a/gl4java/GLContext.java.skel +++ b/gl4java/GLContext.java.skel @@ -812,6 +812,20 @@ 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/<arch> 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 ; |