support relative path in system property flatlaf.nativeLibraryPath (PR #453)

This commit is contained in:
Karl Tauber
2021-12-23 22:19:29 +01:00
parent 90edbe23d7
commit 221e801561
2 changed files with 2 additions and 1 deletions

View File

@@ -141,6 +141,7 @@ public interface FlatSystemProperties
/**
* Specifies a directory in which the native FlatLaf library have been extracted.
* The path can be absolute or relative to current application working directory.
* This can be used to avoid extraction of the native libraries to the temporary directory at runtime.
*
* @since 2

View File

@@ -135,7 +135,7 @@ public class NativeLibrary
private boolean loadLibraryFromFile( File libraryFile ) {
try {
System.load( libraryFile.getPath() );
System.load( libraryFile.getAbsolutePath() );
return true;
} catch( Throwable ex ) {
log( null, ex );