@@ -0,0 +1,1581 @@
+/**%0A * Gets the path for the current directory%0A * %0A * @author Alejandro Rodr%C3%ADguez%0A */%0A%0Apublic class DirectoryPath %7B%0A    private final String CLASSNAME; //this class name%0A    private String currentPath;     //path for current directory, if not running within a .jar file%0A%09%0A    public DirectoryPath() %7B%0A        CLASSNAME = %22DirectoryPath.class%22;%0A        currentPath = null;%0A        setCurrentPath();%0A    %7D%0A%09%0A    /**%0A     * Discovers absolute path%0A     */%0A    private void setCurrentPath() %7B%0A        currentPath = this.getClass().getClassLoader().getResource(CLASSNAME).getPath();    //this class locatio%0A        currentPath = currentPath.substring(currentPath.indexOf(%22/%22));                      //removes preceiding %22file:%22%0A        currentPath = currentPath.replaceAll(%22%2520%22, %22 %22);                                   //removes blank space encoding%0A%09%09%0A        if (System.getProperty(%22os.name%22).toLowerCase().contains(%22windows%22)) %7B              //removes preceiding %22/%22%0A            currentPath = currentPath.substring(1);%0A        %7D%0A        %0A        if(currentPath.contains(%22.jar!/%22 + CLASSNAME)) %7B%0A            //System.out.println(currentPath);                                              //console debug%0A            currentPath = currentPath.substring(0, currentPath.lastIndexOf(%22/%22));           //removes class name%0A        %7D%0A%09%09%0A        currentPath = currentPath.substring(0, currentPath.lastIndexOf(%22/%22) + 1);           //removes class name or .jar name%0A    %7D%0A%09%0A    /**%0A     * @return The current directory%0A     */%0A    public String getPath() %7B%0A        return currentPath;%0A    %7D%0A%7D%0A

Create DirectoryPath.java