public String getProgramDirPath() {
if (programDirPath == null) {
programDirPath = getClass().getProtectionDomain().getCodeSource().getLocation().getPath();
- System.out.println("----" +programDirPath);
if (programDirPath.endsWith(".jar")) {
programDirPath = programDirPath.substring(0,programDirPath.lastIndexOf("/"));
} else {
}
programDirPath = programDirPath.substring(0,programDirPath.lastIndexOf("/"));
}
- System.out.println("----" +programDirPath);
}
return programDirPath;
}