Ubuntu has a very handy utility. Try the following:
sudo update-java-alternatives -s java-6-sun
in the shell. This may lead to some errors ...
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.
This is only a problem with the java plugin for Firefox. You can ignore it. If you have other problems, check which java you installed by issuing:
sudo update-java-alternatives -l
Or you can use the interactive version:
sudo update-java-alternatives
(... I have not tested this one).
If for any reason you do not have Sun JDK comments, write a comment.
EDIT
Do you use hardware acceleration? Try adding this JVM property:
-Dsun.java2d.opengl=True
To find out the details you can also use:
-Dsun.java2d.trace=log
See OpenGL acc for more details.
source share