Difference between revisions of "Java Console (Ubuntu)"

From Proxmox VE
Jump to navigation Jump to search
m
Line 10: Line 10:
 
=Resolution=
 
=Resolution=
  
Add the Canonical partner repository.
+
 
<source lang="bash">
+
=== shell script to update-sun-jre ===
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
+
 
</source>
+
*check http://www.duinsoft.nl/packages.php?t=en , there is a shell script and a repository which make the installation of the Oracle (Sun) Java Runtime Environment very easy. I used it on Ubuntu, but it look like it'll work on any Debian based system.
Install Sun Java JRE.
+
 
<source lang="bash">
+
On that link there is information about the java changes that occurred in August 2011.  
sudo apt-get update
 
sudo apt-get install sun-java6-jre sun-java6-fonts sun-java6-plugin
 
</source>
 
Update system defaults to prefer Sun Java over OpenJDK.
 
<source lang="bash">
 
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
 
</source>
 
If that fails, manually choose them from a list. Always choose the option containing “java-6-sun”.
 
<source lang="bash">
 
sudo update-alternatives --config java
 
sudo update-alternatives --config javaws
 
sudo update-alternatives --config mozilla-javaplugin.so
 
</source>
 
Restart Firefox.
 
  
 
[[Category: Proxmox VE 2.0]]
 
[[Category: Proxmox VE 2.0]]

Revision as of 08:30, 14 August 2012

Yellowpin.svg 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

shell script to update-sun-jre

  • check http://www.duinsoft.nl/packages.php?t=en , there is a shell script and a repository which make the installation of the Oracle (Sun) Java Runtime Environment very easy. I used it on Ubuntu, but it look like it'll work on any Debian based system.

On that link there is information about the java changes that occurred in August 2011.