diff options
author | Kenneth Russel <[email protected]> | 2003-07-15 05:29:43 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2003-07-15 05:29:43 +0000 |
commit | 893596e90c9680af58b6d05c934d8371eebad284 (patch) | |
tree | 0e12ffefb8c7d2f291d5df1aebb751596ea1d882 | |
parent | 9d02187636cd51a113637bfeeaecb0a5a8811ff3 (diff) |
Fixed issue 16: Accessibility breaks jogl
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@29 232f8b59-042b-4e1e-8c03-345bb8c30851
-rw-r--r-- | src/net/java/games/jogl/impl/NativeLibLoader.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/net/java/games/jogl/impl/NativeLibLoader.java b/src/net/java/games/jogl/impl/NativeLibLoader.java index 4c944413a..75d7a5a5c 100644 --- a/src/net/java/games/jogl/impl/NativeLibLoader.java +++ b/src/net/java/games/jogl/impl/NativeLibLoader.java @@ -47,7 +47,15 @@ public class NativeLibLoader { public Object run() { boolean isOSX = System.getProperty("os.name").equals("Mac OS X"); if (!isOSX) { - System.loadLibrary("jawt"); + try { + System.loadLibrary("jawt"); + } catch (UnsatisfiedLinkError e) { + // Accessibility technologies load JAWT themselves; safe to continue + // as long as JAWT is loaded by any loader + if (e.getMessage().indexOf("already loaded") == -1) { + throw e; + } + } } System.loadLibrary("jogl"); return null; |