I got the same issue on Kubuntu 12.04 LTS, but I need Sun JDK 6 for a project that I support. I came across an OAB-Java Martin Wimpress script (via help.ubuntu.com ) that creates and installs a local repository for Sun JDK 6. You can find the latest instructions on the Martin github site, which runs as follows:
cd ~/ wget https://github.com/flexiondotorg/oab-java6/raw/0.2.7/oab-java.sh \ -O oab-java.sh chmod +x oab-java.sh sudo ./oab-java.sh
If you want to see what this script does during its execution, follow these steps from another shell:
tail -f ./oab-java.sh.log
Alternatively, you can clone the OAB-Java repository and delete the script from the inside:
git clone git://github.com/flexiondotorg/oab-java6.git cd oab-java6 sudo ./oab-java.sh
In any case, as soon as this happens, follow Jose's instructions to remove openjdk and install sun jdk:
sudo apt-get remove openjdk* sudo apt-get install sun-java6-jdk
In the latter case, the script accepts the -7 argument, which will create and install the local apt repository for Oracle JDK 7 if you want to go this route.
Coren
source share