Answers for "java get path from where the jar is run from"

2

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 path from where the jar is run from"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language