Here you can find the source of getTempDir()
public static String getTempDir()
//package com.java2s; /******************************************************************************* * Copyright (c) 2011 Sebastian Schmidt and others. All rights reserved. This * program and the accompanying materials are made available under the terms of * the Eclipse Public License v1.0 which accompanies this distribution, and is * available at http://www.eclipse.org/legal/epl-v10.html * /*from w w w . j a v a 2 s . c om*/ * Contributors: Sebastian Schmidt - initial API and implementation ******************************************************************************/ public class Main { public static String getTempDir() { return System.getProperty("java.io.tmpdir") + "/build_" + Long.toString(System.nanoTime()); } }