diff options
-rw-r--r-- | connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeLibraries.java | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeLibraries.java b/connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeLibraries.java index 866f550f0a1b..c1d22a8f6633 100644 --- a/connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeLibraries.java +++ b/connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeLibraries.java @@ -58,16 +58,7 @@ final class NativeLibraries { URL url = ((URLClassLoader) cl).findResource(sysname); if (url != null) { try { - System.load( - File.class.getConstructor( - new Class[] { - ClassLoader.getSystemClassLoader(). - loadClass("java.net.URI") }). - newInstance( - new Object[] { - URL.class.getMethod("toURI", new Class[0]). - invoke(url, (java.lang.Object[])null) }). - getAbsolutePath()); + System.load(new File(url.toURI()).getAbsolutePath()); } catch (Throwable t) { throw new UnsatisfiedLinkError( e.toString()+ " - " + t.toString()); |