Set alternatives to automode while installing java