diff options
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/org')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/org/eclipse/swt/awt/SWT_AWT.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/org/eclipse/swt/awt/SWT_AWT.java b/bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/org/eclipse/swt/awt/SWT_AWT.java index 790857d71d..4c9e730381 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/org/eclipse/swt/awt/SWT_AWT.java +++ b/bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/org/eclipse/swt/awt/SWT_AWT.java @@ -55,7 +55,15 @@ static native final int /*long*/ getAWTHandle (Canvas canvas); static synchronized void loadLibrary () { if (loaded) return; loaded = true; - System.loadLibrary("jawt"); + /* + * Note that the jawt library is loaded explicitily + * because it cannot be found by the library loader. + * All exceptions are caught because the library may + * have been loaded already. + */ + try { + System.loadLibrary("jawt"); + } catch (Throwable e) {} Library.loadLibrary("swt-awt"); } |