The current JarFileArchive unpack logic doesn't work in exactly the same way as Files.createTempDirectory and doesn't make use of java.nio.file. It would be sensible to align things and also delete files when the JVM exits.