Here you can find the source of getRootDir()
public static String getRootDir() throws IOException
//package com.java2s; import java.io.*; public class Main { public static String getRootDir() throws IOException { // We want to return the root directory of the program! // return "/home/tam/eclipse-workspace-str/PDFAnalyser-1.1-os"; File currentDir = new File("."); // System.out.println(currentDir.getCanonicalPath()); return currentDir.getCanonicalPath(); }/*from w w w.j av a 2 s . c o m*/ }