Here you can find the source of getTempDir()
public static String getTempDir()
//package com.java2s; //License from project: Open Source License import java.io.*; public class Main { /**/* ww w . j a v a 2 s . c om*/ * Return the pathname for the JOA temporary directory that's created when * parsing zip files. Create the directory if necessary. * * @return Pathname */ public static String getTempDir() { String dir = System.getProperty("user.dir") + File.separator + "temp" + File.separator; // test to see if it exists File tdir = new File(dir); if (!tdir.exists()) { tdir.mkdir(); } return dir; } }