Hello, I'm trying to install Oracle JDK 1.6.0_30 on Ubuntu Server 11.10. OpenJDK 6 and OpenJDK 7 are already installed, and I'm setting up OracleJDK using update-alternatives.
I've done this with no problems on my Ubuntu Desktop 11.10 workstation, but the same process is resulting in this error on the server:
The setup process is:
update-alternatives: error: alternative javac can't be a slave of java: it is a master alternative.
1. Download, extract, and copy the extracted jdk1.6.0_30 to usr/lib/jvm/jdk1.6.0_30.
2. Setup default-jvm soft link and $JAVA_HOME:
Add $JAVA_HOME to .profile:
ln -s /usr/lib/jvm/jdk1.6.0_30 /usr/lib/jvm/default-java
3. Use this script to add jdk1.6.0_30 to the update-alternatives java list.
The error occurs at #3 when I use the script. I can slave javac to java on Ubuntu Desktop, but not on Ubuntu Server. Any idea why?