check update-alternatives for java before trying to install n debian like, closes #1816