Slight bug in the way java is detected / present.