Java Console (Ubuntu): Difference between revisions

From Proxmox VE
Jump to navigation Jump to search
(archive)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
=Introduction=
== Introduction ==
Proxmox VE Java console does not work with old icedtea-plugins on Ubuntu, Debian and other distros. Latest icedtea-7-plugin (1.4-3 or higher) works, for more details see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=707729
Proxmox VE Java console does not work with old icedtea-plugins on Ubuntu, Debian and other distros. Latest icedtea-7-plugin (1.4-3 or higher) works, for more details see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=707729


Best practices, use Oracle (Sun) 7 version to get the console correctly working.
Best practices, use Oracle (Sun) 7 version to get the console correctly working.


=Solution=
== Solution ==


==Debian Sid and OpenJdk 7==
=== Debian Wheezy (and later) and OpenJdk 7 ===


  # aptitude install openjdk-7-jre icedtea-7-plugin
  # aptitude install openjdk-7-jre icedtea-7-plugin
Line 13: Line 13:
I had errors in starting console until I removed 'openjdk-6-whatever' and 'icedtea-6-whatever', included 'icedtea' (generic package that brings version 6)
I had errors in starting console until I removed 'openjdk-6-whatever' and 'icedtea-6-whatever', included 'icedtea' (generic package that brings version 6)


==shell script to update-sun-jre==
=== 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.
*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.
Line 19: Line 19:
On that link there is information about the java changes that occurred in August 2011.  
On that link there is information about the java changes that occurred in August 2011.  


==solution for Ubuntu 12.04 and Oracle Java 7==
=== Solution for Ubuntu 12.04 and Oracle Java 7 ===
first method, leaving openjdk installed: http://askubuntu.com/questions/183867/how-do-i-update-oracle-java-7-jdk-and-jre
first method, leaving openjdk installed: http://askubuntu.com/questions/183867/how-do-i-update-oracle-java-7-jdk-and-jre


Line 36: Line 36:
Remember that, contrary to OpenJDK, Oracle Java is *not* Free Software, and no one except Oracle has control on the code and knows what really does on your computer.
Remember that, contrary to OpenJDK, Oracle Java is *not* Free Software, and no one except Oracle has control on the code and knows what really does on your computer.


 
[[Category: Archive]] [[Category: Proxmox VE 3.x]]
[[Category: HOWTO]]

Latest revision as of 15:55, 18 July 2019

Introduction

Proxmox VE Java console does not work with old icedtea-plugins on Ubuntu, Debian and other distros. Latest icedtea-7-plugin (1.4-3 or higher) works, for more details see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=707729

Best practices, use Oracle (Sun) 7 version to get the console correctly working.

Solution

Debian Wheezy (and later) and OpenJdk 7

# aptitude install openjdk-7-jre icedtea-7-plugin

(will install also icedtea-netx) I had errors in starting console until I removed 'openjdk-6-whatever' and 'icedtea-6-whatever', included 'icedtea' (generic package that brings version 6)

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.

Solution for Ubuntu 12.04 and Oracle Java 7

first method, leaving openjdk installed: http://askubuntu.com/questions/183867/how-do-i-update-oracle-java-7-jdk-and-jre

$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
$ sudo apt-get install oracle-java7-installer
$ sudo update-java-alternatives -s java-7-oracle

second method, removing openjdk: http://askubuntu.com/questions/143781/used-purge-command-to-remove-java-it-removed-a-lot-more-than-java

$ sudo apt-get purge openjdk*
$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
$ sudo apt-get install oracle-java7-installer

Remember that, contrary to OpenJDK, Oracle Java is *not* Free Software, and no one except Oracle has control on the code and knows what really does on your computer.