Here you can find the source of getTempFolder()
public static String getTempFolder()
//package com.java2s; //License from project: Apache License import java.io.File; public class Main { public static String getTempFolder() { File tempFolder = new File(System.getProperty("user.dir") + "\\temp"); if (!tempFolder.exists()) { tempFolder.mkdirs();//from w ww . java 2 s . c o m } return tempFolder.getPath() + File.separator; } }