Added java detection methods to DirResources, plus some minor changes.