Java Console (Ubuntu): Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Note|Article about Proxmox VE 2.0 beta}} =Introduction= Java console can crash in firefox on Ubuntu. Since 10.04, Ubuntu is shipped with openjdk java version and not sun vers…") |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{Note|Article about Proxmox VE 2.0 | {{Note|Article about Proxmox VE 2.0}} | ||
=Introduction= | =Introduction= |
Revision as of 12:38, 29 March 2012
Note: Article about Proxmox VE 2.0 |
Introduction
Java console can crash in firefox on Ubuntu.
Since 10.04, Ubuntu is shipped with openjdk java version and not sun version.
You need Sun Java 6 version to get the console correctly working.
Resolution
Add the Canonical partner repository.
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
Install Sun Java JRE.
sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-fonts sun-java6-plugin
Update system defaults to prefer Sun Java over OpenJDK.
sudo update-alternatives --set java /usr/lib/jvm/java-6-sun/jre/bin/java
sudo update-alternatives --set javaws /usr/lib/jvm/java-6-sun/jre/bin/javaws
sudo update-alternatives --set mozilla-javaplugin.so /usr/lib/jvm/java-6-sun/jre/lib/*/libnpjp2.so
If that fails, manually choose them from a list. Always choose the option containing “java-6-sun”.
sudo update-alternatives --config java
sudo update-alternatives --config javaws
sudo update-alternatives --config mozilla-javaplugin.so
Restart Firefox.