I had the exact same problem as the OP and I was able to get it to work after running one additional command. This thread saved me a lot of time trying to figure out how to install Sun java, thanks!!
You probably have already, but just in case you haven't, install the 'icedtea6-plugin' package. You'll need the package to enable Java in Firefox.
Code:
sudo apt-get install icedtea6-plugin
Try running
and see if it says something like this:
java version "1.6.0_18"
OpenJDK Runtime Environment (IcedTea6 1.8 ) (6b18-1.8-4ubuntu3)
OpenJDK Server VM (build 16.0-b13, mixed mode)
If so then you're running the wrong version of java. Installing the Sun Java-6 package as described earlier doesn't seem to make Sun java the default java. I found the info for the following commands here: https://help.ubuntu.com/community/Java So try running this command after you have followed the previous steps to install Sun java:
Code:
sudo update-java-alternatives -l
You should see something like this. If only the openjdk line is present, then the sun java packages didn't get installed.
java-6-openjdk 1061 /usr/lib/jvm/java-6-openjdk
java-6-sun 63 /usr/lib/jvm/java-6-sun
So lastly, try this:
Code:
sudo update-java-alternatives -s java-6-sun
...gives a much of messages, but doesn't seem to keep Yahoo from working.
update-alternatives: error: no alternatives for HtmlConverter.
update-alternatives: error: no alternatives for java-rmi.cgi.
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-sun/bin/appletviewer
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-sun/bin/apt
...SNIP...
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-sun/bin/wsimport
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-sun/bin/xjc
If you get this, then Yahoo should work as expected.
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) Server VM (build 16.3-b01, mixed mode)
So putting it all together from the beginning, it should be:
HOW TO INSTALL JAVA SO IT WORKS WITH Yahoo Games
Code:
$ sudo apt-get install default-jdk icedtea6-plugin
Enable 'http://archive.canonical.com/ubuntu lucid partner' in Repositories
$ sudo apt-get update
$ sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts
$ sudo update-java-alternatives -s java-6-sun
Sorry for the long winded post, hope that helps you!!
Bookmarks