From db4cba76033124cbf1baa560b99700987fcdd3ae Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Wed, 27 Apr 2016 15:43:28 +0200 Subject: beans: if loading a library fails, show the reason Don't do it for the MSVC libraries though, e.g. on my system loading msvcr70 fails, but the SDK example works without problems. Change-Id: I81bc0b64967e7abb74ca1fff7a2e4b4dbd75d5a5 Reviewed-on: https://gerrit.libreoffice.org/24432 Reviewed-by: Miklos Vajna Tested-by: Jenkins --- bean/com/sun/star/comp/beans/LocalOfficeConnection.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'bean') diff --git a/bean/com/sun/star/comp/beans/LocalOfficeConnection.java b/bean/com/sun/star/comp/beans/LocalOfficeConnection.java index 5c67e905a5f1..c2d17b7c0e33 100644 --- a/bean/com/sun/star/comp/beans/LocalOfficeConnection.java +++ b/bean/com/sun/star/comp/beans/LocalOfficeConnection.java @@ -99,7 +99,8 @@ public class LocalOfficeConnection catch (Throwable e) { // loading twice would fail - System.err.println( "cannot find uwinapi" ); + System.err.println("cannot find uwinapi:"); + e.printStackTrace(); } try @@ -109,7 +110,8 @@ public class LocalOfficeConnection catch (Throwable e) { // loading twice would fail - System.err.println( "cannot find jawt" ); + System.err.println("cannot find jawt:"); + e.printStackTrace(); } } @@ -773,3 +775,5 @@ public class LocalOfficeConnection } } + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit