If you need to know where a loaded class resides, use the Class
method:
getProtectionDomain().getCodeSource()
I still prefer mine...
public class Locater extends ClassLoader {
public static void main(String[] args) {
if (args.length == 0) {
System.out.println("Locater: missing class to locate");
return;
}
System.out.println(new Locater().getResource(args[0]));
}
}
I noticed at some point that Apache and/or Ant corrected my spelling
and came up with a more elaborate version of their own...
org.apache.tools.ant.launch.Locator
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden