Java Console (Ubuntu)

From Proxmox VE
Revision as of 07:02, 8 March 2012 by Alexandre Derumier (talk | contribs) (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…")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Yellowpin.svg 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 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.