Here you can find the source of getTempDir()
public static File getTempDir()
//package com.java2s; /******************************************************************************* * Copyright (c) 2014 Gabriel Skantze./*from ww w.java 2 s .c o m*/ * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v3.0 * which accompanies this distribution, and is available at * http://www.gnu.org/licenses/gpl.html * * Contributors: * Gabriel Skantze - initial API and implementation ******************************************************************************/ import java.io.File; public class Main { public static File getTempDir() { return new File(System.getProperty("java.io.tmpdir") + File.separator + "iristk"); } public static File getTempDir(String name) { return new File(System.getProperty("java.io.tmpdir") + File.separator + "iristk" + File.separator + name); } }