Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MyClass.class.getProtectionDomain().getCodeSource().getLocation().getPath();
- String yourJarName="yourJarName.jar";
- String Jar_path= MyClass.class.getProtectionDomain().getCodeSource().getLocation().getPath().replace(yourJarName,"").substring(1);
- String yourJarName="yourJarName.jar";
- String Jar_path= MyClass.class.getProtectionDomain().getCodeSource().getLocation().getPath().replace(yourJarName,"");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement