Tente desta forma, conforme [**resposta no SOEn**][1]: String jarName = new java.io.File(SomeClassInYourJar.class.getProtectionDomain() .getCodeSource() .getLocation() .toURI() .getPath()) .getName(); [1]: http://stackoverflow.com/a/11159435/5524514