private static NativeLibrary createNativeLibrary( String classifier, String ext, boolean unknownArch ) {
		String libraryName = "flatlaf-" + classifier;

		// load from "java.library.path" or from path specified in system property "flatlaf.nativeLibraryPath"
		String libraryPath = System.getProperty( FlatSystemProperties.NATIVE_LIBRARY_PATH );
		if( libraryPath != null ) {
			if( "system".equals( libraryPath ) ) {
				NativeLibrary library = new NativeLibrary( libraryName, true );
				if( library.isLoaded() )
					return library;

				if( !unknownArch ) {
					LoggingFacade.INSTANCE.logSevere( "FlatLaf: Native library '" + System.mapLibraryName( libraryName )
						+ "' not found in java.library.path '" + System.getProperty( "java.library.path" )
						+ "'. Using extracted native library instead.", null );
				}
			} else {
				// try standard library naming scheme
				// (same as in flatlaf.jar in package 'com/formdev/flatlaf/natives')
				File libraryFile = new File( libraryPath, System.mapLibraryName( libraryName ) );
				if( libraryFile.exists() )
					return new NativeLibrary( libraryFile, true );

				// try Maven naming scheme
				// (see https://www.formdev.com/flatlaf/native-libraries/)
				String libraryName2 = null;
				File jarFile = getJarFile();
				if( jarFile != null ) {
					libraryName2 = buildLibraryName( jarFile, classifier, ext );
					File libraryFile2 = new File( libraryPath, libraryName2 );
					if( libraryFile2.exists() )
						return new NativeLibrary( libraryFile2, true );
				}

				if( !unknownArch ) {
					LoggingFacade.INSTANCE.logSevere( "FlatLaf: Native library '"
						+ libraryFile.getName()
						+ (libraryName2 != null ? ("' or '" + libraryName2) : "")
						+ "' not found in '" + libraryFile.getParentFile().getAbsolutePath()
						+ "'. Using extracted native library instead.", null );
				}
			}
		}

		// load from beside the FlatLaf jar
		// e.g. for flatlaf-3.1.jar, load flatlaf-3.1-windows-x86_64.dll (from same directory)
		File libraryFile = findLibraryBesideJar( classifier, ext );
		if( libraryFile != null )
			return new NativeLibrary( libraryFile, true );

		// load from FlatLaf jar (extract native library to temp folder)
		return new NativeLibrary( "com/formdev/flatlaf/natives/" + libraryName, null, !unknownArch );
	}
Loads native library (if available) and returns whether loaded successfully.
Returns {@code false} if no native library is available.
flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatNativeLibrary.java