check that Java exists