Tuesday, May 24, 2005

Google desktop search

It's a great search tool, but if you're planning on running various tomcats, a jboss, an apache and eclipse at the same time forget it. It slows the whole system down to a grinding halt...

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.