mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-11 14:37:13 -06:00
support relative path in system property flatlaf.nativeLibraryPath (PR #453)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user