From 893596e90c9680af58b6d05c934d8371eebad284 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Tue, 15 Jul 2003 05:29:43 +0000 Subject: 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 --- src/net/java/games/jogl/impl/NativeLibLoader.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/net/java/games/jogl') 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; -- cgit v1.2.3