02 May 2010

Finding Out Where Your Class Files Are | Javalobby

Finding Out Where Your Class Files Are | Javalobby
ProtectionDomain protectionDomain = HyenaDesk.class.getProtectionDomain();
File codeLoc = new File(protectionDomain.getCodeSource().getLocation().getFile());