private static void deleteOrMarkForDeletion( File file ) {
		// try to delete the native library
		if( file.delete() )
			return;

		// not possible to delete on Windows because native library file is locked
		// --> create "to delete" marker file (used at next startup)
		try {
			File markFile = new File( file.getParent(), file.getName() + DELETE_SUFFIX );
			markFile.createNewFile();
		} catch( IOException ex2 ) {
			// ignore
		}
	}
Add prefix and suffix to library name.
<ul>
<li>Windows: libraryName + ".dll"
<li>macOS: "lib" + libraryName + ".dylib"
<li>Linux: "lib" + libraryName + ".so"
</ul>
flatlaf-core/src/main/java/com/formdev/flatlaf/util/NativeLibrary.java