Here you can find the source of getRootDir()
public static File getRootDir()
//package com.java2s; //License from project: Apache License import java.io.File; public class Main { public static File getRootDir() { String rootDir = System.getProperty("user.home", "."); File rootFile = new File(rootDir, ".autotest"); if (!rootFile.isDirectory()) { rootFile.mkdirs();/*from w ww.j a v a2s . c om*/ } return rootFile; } }