I've spent two days trying to switch over to Oracle Java because Android Studio doesn't like OpenJava.
I'm on the final (third) stage of setting the alternatives and have picked up the latest(?) suggestion from AskUbuntu, namely:
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk/bin/java 1
All I get from the terminal is that the folder doesn't exist - in fact, it does. Can any one help me here?