automatic java tools detection -hopefully