private static boolean loadLibraryFromJar( String libraryName, ClassLoader classLoader ) {
		// add prefix and suffix to library name
		libraryName = decorateLibraryName( libraryName );

		// find library
		URL libraryUrl = (classLoader != null)
			? classLoader.getResource( libraryName )
			: NativeLibrary.class.getResource( "/" + libraryName );
		if( libraryUrl == null ) {
			LoggingFacade.INSTANCE.logSevere( "Library '" + libraryName + "' not found", null );
			return false;
		}

		File tempFile = null;
		try {
			// for development environment
			if( "file".equals( libraryUrl.getProtocol() ) ) {
				String binPath = libraryUrl.getPath();
				String srcPath = binPath.replace( "flatlaf-core/bin/main/", "flatlaf-core/src/main/resources/" );
				File libraryFile = new File( srcPath ); // use from 'src' folder if available
				if( !libraryFile.isFile() )
					libraryFile = new File( binPath ); // use from 'bin' or 'output' folder if available
				if( libraryFile.isFile() ) {
					// load library without copying
					System.load( libraryFile.getCanonicalPath() );
					return true;
				}
			}

			// create temporary file
			Path tempPath = createTempFile( libraryName );
			tempFile = tempPath.toFile();

			// copy library to temporary file
			try( InputStream in = libraryUrl.openStream() ) {
				Files.copy( in, tempPath, StandardCopyOption.REPLACE_EXISTING );
			}

			// load library
			System.load( tempFile.getCanonicalPath() );

			// delete library
			deleteOrMarkForDeletion( tempFile );

			return true;
		} catch( Throwable ex ) {
			LoggingFacade.INSTANCE.logSevere( ex.getMessage(), ex );

			if( tempFile != null )
				deleteOrMarkForDeletion( tempFile );
			return false;
		}
	}
Returns whether the native library is loaded.
<p>
Returns {@code false} if not supported on current platform as specified in constructor
or if loading failed.
flatlaf-core/src/main/java/com/formdev/flatlaf/util/NativeLibrary.java