From 577b2976e4350b32f9dc6662616ca534a1eee660 Mon Sep 17 00:00:00 2001 From: Silenio Quarti Date: Wed, 1 Sep 2004 16:31:43 +0000 Subject: 73046 --- .../Eclipse SWT AWT/gtk/org/eclipse/swt/awt/SWT_AWT.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/org/eclipse/swt/awt/SWT_AWT.java') 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"); } -- cgit