The last article "Install Java 1.7.0 on ubuntu 11.10" described how to install JRE 1.7.0 on ubuntu 11.10, if you are looking for how to install JDK7, javac, on Ubuntu 11.10, here is the steps:
- Follow the steps in last article "Install Java 1.7.0 on ubuntu 11.10" to download JDK7, un-compress and move to /usr/lib/jvm/jdk1.7.0.
- Check the installed javac
$ sudo update-alternatives --config javac
For a flash installed Ubuntu, there should be no javac installed.
- Install javac
$ sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.7.0/bin/javac 1
Note: The last parameter is "priority", it is an integer; options with higher numbers have higher priority in automatic mode.