update installjava function