How do I get the path of a an executed .jar file, in Java?
I tried using System.getProperty("user.dir");
but this only gave me the current working directory which is wrong, I need the path to the directory, that the .jar file is located in, directly, not the "pwd".