Here you can find the source of getTempPath()
public static String getTempPath()
//package com.java2s; //License from project: Open Source License public class Main { /**//from w w w . ja v a 2s . c o m * Returns the temporary directory path. * * @return path */ public static String getTempPath() { return System.getProperty("java.io.tmpdir"); } }