Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java get jar execution directory

return new File(MyClass.class.getProtectionDomain().getCodeSource().getLocation()
    .toURI()).getPath();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #jar #execution #directory
ADD COMMENT
Topic
Name
5+4 =