Witless
Un blog de actualizaciĆ³n irregular. Irregular updates. Don't hold your breath.
Tuesday, May 17, 2005
Classloading fun
How to find where a class is loaded from:
myClass.getClass().getProtectionDomain().getCodeSource().getLocation()
This may not work with rt.jar loaded classes, it's worth checking if getCodeSource() returns null or not.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment