From 23d5cf65129d0434c07f224a373d8b6245411da7 Mon Sep 17 00:00:00 2001 From: Thomas Watson Date: Thu, 29 Aug 2024 10:25:34 -0500 Subject: [PATCH] Need to print the exception message to give more information If running on a system that does not have the required glibc version then important information is lost to tell the user what is wrong. For example: version 'GLIBC_2.34' not found (required by .../libswt-pi3-gtk-4966r6.so) --- .../Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java index ed790678f24..4d261cac101 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java @@ -86,6 +86,7 @@ public class OS extends C { try { Library.loadLibrary("swt-pi4"); } catch (Throwable e) { + System.err.println(e.getMessage()); System.err.println("SWT OS.java Error: Failed to load swt-pi4, loading swt-pi3 as fallback."); Library.loadLibrary("swt-pi3"); } @@ -93,6 +94,7 @@ public class OS extends C { try { Library.loadLibrary("swt-pi3"); } catch (Throwable e) { + System.err.println(e.getMessage()); System.err.println("SWT OS.java Error: Failed to load swt-pi3, loading swt-pi4 as fallback."); Library.loadLibrary("swt-pi4"); }