Change System.getProperty("java.io.tmpdir") to System.getenv("TEMP") to be consistent.