fix inconsistency about java installation