Fix java configuration