Fixed java executable resolution