diff options
author | Sven Gothel <[email protected]> | 2009-07-04 04:21:08 +0000 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2009-07-04 04:21:08 +0000 |
commit | 936c19bbb05335bce8d29061835da3a6aa035594 (patch) | |
tree | a8f818c1a83171251cac36004decaa61aac8b6bc /src/nativewindow/classes/com/sun | |
parent | 918b42027e024f3b7973463a6391db8c11d5d778 (diff) |
Fix jnlp macosx ; Ignore jawt lib loading error
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@2022 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/nativewindow/classes/com/sun')
-rw-r--r-- | src/nativewindow/classes/com/sun/nativewindow/impl/jawt/JAWTNativeLibLoader.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/JAWTNativeLibLoader.java b/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/JAWTNativeLibLoader.java index f0f2ac8c3..bc963277a 100644 --- a/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/JAWTNativeLibLoader.java +++ b/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/JAWTNativeLibLoader.java @@ -62,7 +62,14 @@ public class JAWTNativeLibLoader extends NativeLibLoaderBase { // will succeed since JAWT shared object isn't in // default library path if ( ! NativeWindowFactory.TYPE_MACOSX.equals( NativeWindowFactory.getNativeWindowType(false) ) ) { - loadLibrary("jawt", null, true); + try { + loadLibrary("jawt", null, true); + } catch (Throwable t) { + // It might be ok .. if it's already loaded + if(DEBUG) { + t.printStackTrace(); + } + } } return null; } |