This Blog is first of all memos for me!! From time to time I get exposed to new and cool stuff for developers and architects ,most of the time its a solution for a problem or tips or tricks, so, I would like to track my memos and share it with you, it can save your time and nervous, I hope you will enjoy it - by Yaniv Tzanany.
Search This Blog
Tuesday, July 19, 2011
how to get the jar file location for specific loaded class
this how to get the jar file location for specific class
try { File jarFile = new File(CLASS_NAME.class.getProtectionDomain().getCodeSource().getLocation().toURI()); } catch (URISyntaxException e) { // TODO Auto-generated catch block e.printStackTrace(); }
No comments:
Post a Comment