summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/org
diff options
context:
space:
mode:
authorSilenio Quarti <silenio>2004-09-01 16:31:43 +0000
committerSilenio Quarti <silenio>2004-09-01 16:31:43 +0000
commit577b2976e4350b32f9dc6662616ca534a1eee660 (patch)
tree2d58223844f16d194dbd436d41fd0931177510ad /bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/org
parent0ac7d71e7f243123d408354a99938174f740f276 (diff)
downloadeclipse.platform.swt-577b2976e4350b32f9dc6662616ca534a1eee660.tar.gz
eclipse.platform.swt-577b2976e4350b32f9dc6662616ca534a1eee660.tar.xz
eclipse.platform.swt-577b2976e4350b32f9dc6662616ca534a1eee660.zip
73046
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.java10
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");
}