bug fixes in JavaHomes class