- Just finished a clean install of Ubuntu 10.10 on a new machine
- I added the partner repository via ubuntu software center
- I ran 'sudo apt-get install sun-java6-jdk'
- I ran 'sudo update-java-alternatives -s java-6-sun' and got this error:
alex@alex-home:~$ sudo update-java-alternatives -s java-6-sun update-alternatives: error: no alternatives for mozilla-javaplugin.so. update-alternatives: error: no alternatives for xulrunner-1.9-javaplugin.so. update-alternatives: error: no alternatives for mozilla-javaplugin.so. update-alternatives: error: no alternatives for xulrunner-1.9-javaplugin.so.
Double checking it failed, I am still on the JRE:
alex@alex-home:~$ java -version java version "1.6.0_22" Java(TM) SE Runtime Environment (build 1.6.0_22-b04) Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode) alex@alex-home:~$
Tried this too:
alex@alex-home:~$ sudo update-alternatives --config java There are 2 choices for the alternative java (providing /usr/bin/java). Selection Path Priority Status ------------------------------------------------------------ 0 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 auto mode 1 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 manual mode * 2 /usr/lib/jvm/java-6-sun/jre/bin/java 63 manual mode Press enter to keep the current choice[*], or type selection number:
The JDK is not listed, but it is listed on disk:
alex@alex-home:~$ ls /usr/lib/jvm/ default-java java-1.6.0-openjdk java-6-openjdk java-6-sun java-6-sun-1.6.0.22
UPDATE:
Installing plugin and fonts caused update-java-alternatives to stop complaining, but still no luck:
sudo apt-get install sun-java6-plugin sun-java6-fonts
Then:
alex@alex-home:~$ sudo update-java-alternatives -s java-6-sun alex@alex-home:~$ java -version java version "1.6.0_22" Java(TM) SE Runtime Environment (build 1.6.0_22-b04) Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode)
UPDATE 2: Hmm, maybe its actually working? I thought "...SE Runtime..." meant JRE, but maybe its all good?