Here you can find the source of getRootPathName()
public static String getRootPathName()
//package com.java2s; //License from project: Open Source License import java.io.File; public class Main { public static String getRootPathName() { // String rootPath = Application.getActiveApplication().getClass().getProtectionDomain().getCodeSource().getLocation().getPath(); // rootPath = getParentPath(rootPath); // rootPath += "Bin/"; // return rootPath; return System.getProperty("user.dir") + File.separator + "bin"; }/* w ww . j a v a 2 s . c o m*/ }