Author Topic: Installing Sun Java JRE and browser plugin in PeppermintOS Two or Ubuntu 11.04  (Read 2063 times)

0 Members and 1 Guest are viewing this topic.

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 18231
  • Karma: 476
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
How to replace the IcedTea Java JRE and it's browser plugin with the Sun Java JRE and its browser pugin .. In PeppermintOS (Two) or Ubuntu 11.04.

The Sun version is more up-to-date, and IMHO quicker.

Open a terminal and run:
Code: [Select]
sudo apt-get install ppa-purge
then
Code: [Select]
sudo add-apt-repository ppa:ferramroberto/java
then
Code: [Select]
sudo apt-get update
then
Code: [Select]
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts

At this point the "Operating System Distributor License for Java" dialog will open .. use the Tab key to select <Ok> and hit enter.

Another dialog will open asking "Do you accept with the DLJ license terms ?" .. use the Tab key to select <Yes> and hit enter.

OK, (when that's finished) back in the terminal, run:
Code: [Select]
sudo update-alternatives --config java

You should see something like this:-

Quote
There are 2 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                      Priority   Status
------------------------------------------------------------
* 0            /usr/lib/jvm/java-6-openjdk/jre/bin/java   1061      auto mode
  1            /usr/lib/jvm/java-6-openjdk/jre/bin/java   1061      manual mode
  2            /usr/lib/jvm/java-6-sun/jre/bin/java       63        manual mode


Hit 2 to select the  /usr/lib/jvm/java-6-sun/jre/bin/java and hit enter.
(use whatever number =  /usr/lib/jvm/java-6-sun/jre/bin/java)

Now run:
Code: [Select]
sudo update-alternatives --config mozilla-javaplugin.so

You should see something like this:-

Quote
There are 2 choices for the alternative mozilla-javaplugin.so (providing /usr/lib/mozilla/plugins/libjavaplugin.so).

  Selection    Path                                                       Priority   Status
------------------------------------------------------------
* 0            /usr/lib/jvm/java-6-openjdk/jre/lib/i386/IcedTeaPlugin.so   1061      auto mode
  1            /usr/lib/jvm/java-6-openjdk/jre/lib/i386/IcedTeaPlugin.so   1061      manual mode
  2            /usr/lib/jvm/java-6-sun/jre/lib/i386/libnpjp2.so            63        manual mode


Hit 2 to select the  /usr/lib/jvm/java-6-sun/jre/lib/i386/libnpjp2.so and hit enter.
(use whatever number =  /usr/lib/jvm/java-6-sun/jre/lib/i386/libnpjp2.so)

You can now go to this website:
http://www.java.com/en/download/help/testvm.xml

It should report:-
Vendor:  Sun Microsystems Inc
Version:  Java SE 6 Update 26



You can always use update-alternatives to change back if you wish.
« Last Edit: March 03, 2012, 02:47:24 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline banko

  • Full Member
  • ***
  • Posts: 235
  • Karma: 1
  • I've just joined!
    • View Profile
    • Awards
Thanks for that Mark, done.

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 18231
  • Karma: 476
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
No problem :)
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal