Sometimes update-alternatives fails, and you don't know why. Made java a...

Sometimes update-alternatives fails, and you don't know why. 

This patch gives a friendlier error message.