getClass().getProtectionDomain().getCodeSource().getLocation()
Copyright © 2011–2016 SonarSource. All rights reserved.