Fix java set up.