Fix java installation