mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-14 15:57:12 -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.
|
* 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.
|
* This can be used to avoid extraction of the native libraries to the temporary directory at runtime.
|
||||||
*
|
*
|
||||||
* @since 2
|
* @since 2
|
||||||
|
|||||||
@@ -135,7 +135,7 @@ public class NativeLibrary
|
|||||||
|
|
||||||
private boolean loadLibraryFromFile( File libraryFile ) {
|
private boolean loadLibraryFromFile( File libraryFile ) {
|
||||||
try {
|
try {
|
||||||
System.load( libraryFile.getPath() );
|
System.load( libraryFile.getAbsolutePath() );
|
||||||
return true;
|
return true;
|
||||||
} catch( Throwable ex ) {
|
} catch( Throwable ex ) {
|
||||||
log( null, ex );
|
log( null, ex );
|
||||||
|
|||||||
Reference in New Issue
Block a user