private static Path getTempDir() throws IOException {
		// get standard temporary directory
		String tmpdir = System.getProperty( "java.io.tmpdir" );

		if( SystemInfo.isWindows ) {
			// On Windows, where File.delete() and File.deleteOnExit() does not work
			// for loaded native libraries, they will be deleted on next application startup.
			// The default temporary directory may contain hundreds or thousands of files.
			// To make searching for "marked for deletion" files as fast as possible,
			// use a subdirectory that contains only our temporary native libraries.
			tmpdir += "\\flatlaf.temp";
		}

		// create temporary directory
		Path tempDir = Paths.get( tmpdir );
		Files.createDirectories( tempDir );

		// delete no longer needed temporary files (from already exited applications)
		if( SystemInfo.isWindows )
			deleteTemporaryFiles( tempDir );

		return tempDir;
	}
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