In my case, I needed to know which jar file was providing the Hex class.
System.out.println(Hex.class.getProtectionDomain().
getCodeSource().getLocation().toString());
getCodeSource().getLocation().toString());
It turns out that it's in axis2.jar :)
Technosmatter is a blog about technologies that matter to me. Technosmatter is also a play on words. Technos Matter and Techno Smatter. Smatter meaning to play around with, dabble in, or to speak unintelligently, which may sometimes apply.
1 comment:
As you probably know, a jar file is just a zip archive, so you could do something like:
ls *.jar | xargs -i unzip -t {} | grep Hex.class
presuming the Hex class is in a file called Hex.class There is also a zipgrep command, for looking for more obscure references inside zip archives.
(Nice one for all the great SageTV stuff)
Post a Comment