code: public File getJarDirectory() {
          if (jarDirectory == null) {
              this.jarDirectory = new File(jarPath).getAbsoluteFile().getParentFile();
          }
          return jarDirectory;
      }
docs: Gets the directory of the jar-file