Answers for "java get directory of running jar"

1

java get jar execution directory

return new File(MyClass.class.getProtectionDomain().getCodeSource().getLocation()
    .toURI()).getPath();
Posted by: Guest on February-19-2021

Code answers related to "java get directory of running jar"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language