getting the jar of a class at runtime

System.out.println(TransactionManager.class.getProtectionDomain().getCodeSource().getLocation().toURI())

Comments