aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/net/java/games/jogl/impl/NativeLibLoader.java10
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;