@@ -0,0 +1,837 @@
+package utils;%0A// FROM:  http://code.runnable.com/Uu_XyuLiJBIPAAAc/get-path-of-jar-file-for-java%0A%0Aimport java.io.File;%0Aimport java.io.UnsupportedEncodingException;%0Aimport java.net.URL;%0Aimport java.net.URLDecoder;%0A%0Apublic class JarPath %7B%0A%0A%09private static String path;%0A%0A%09public static String getPath() %7B%0A%09%09if (path == null) %7B%0A%09%09%09URL url = JarPath.class.getProtectionDomain().getCodeSource().getLocation(); // Gets the path%0A%09%09%09String jarPath = null;%0A%09%09%09try %7B%0A%09%09%09%09jarPath = URLDecoder.decode(url.getFile(), %22UTF-8%22); // Should fix it to be read correctly by the system%0A%09%09%09%7D catch (UnsupportedEncodingException e) %7B%0A%09%09%09%09e.printStackTrace();%0A%09%09%09%7D%0A%0A%09%09%09String parentPath = new File(jarPath).getParentFile().getPath(); // Path of the jar%0A%09%09%09parentPath = parentPath + File.separator;%0A%0A%09%09%09JarPath.path = parentPath;%0A%09%09%7D%0A%0A%09%09return JarPath.path;%0A%09%7D%0A%7D

Add JarPath class