Java alternative in Ubuntu

Asked by MetungKP on 2011-01-07

I was listing an item on eBay when I realized I need Java in order to post pictures. I typed Java in the Software Store and I got 2 options, OpenJDK Java 6 Runtime and OpenJDK Java 6 Web Start. Descriptions on both are the same, my question is, which one do I download? Can someone explain the difference?

Thanks!
KP

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu sun-java6 Edit question
Assignee:
No assignee Edit question
Solved by:
mycae
Solved:
2011-01-08
Last query:
2011-01-08
Last reply:
2011-01-07

This question was reopened

MetungKP,

If you want the regular "Sun" java you need to add the partner repository:

    sudo add-apt-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner"

Then run update:

   sudo apt-get update

Then install the Sun Browser plugin:

   sudo apt-get install sun-java6-plugin

Restart your browswer and you should have Java suppot.

Good luck,
George

MetungKP (metungkp) said : #2

Thanks! If you think this is best one then I will install this one.

MetungKP (metungkp) said : #3

Thanks! If you think this is best one then I will install this one.

MetungKP (metungkp) said : #4

Is there anything I need to do to this page? It has been stuck here for a good 20+ minutes.

MetungKP (metungkp) said : #5

Is there anything I need to do to this page? It has been stuck here for a good 20+ minutes.

MetungKP (metungkp) said : #6

Is there anything I need to do to this page? It has been stuck here for a good 20+ minutes.

 ┌───────────────────────┤ Configuring sun-java6-jre ├───────────────────────┐
 │ │
 │ Operating System Distributor License for Java v1.1 (DLJ)
 │
 │ Operating System Distributor License for Java version 1.1 (DLJ)
 │
 │ SUN MICROSYSTEMS, INC. ("SUN") IS WILLING TO LICENSE THE JAVA PLATFORM
 │ STANDARD EDITION DEVELOPER KIT ("JDK" - THE "SOFTWARE") TO YOU ONLY UPON
 │ THE CONDITION THAT YOU ACCEPT ALL OF THE TERMS CONTAINED IN THIS LICENSE
 │ AGREEMENT (THE "AGREEMENT"). PLEASE READ THE AGREEMENT CAREFULLY. BY
 │ INSTALLING, USING, OR DISTRIBUTING THIS SOFTWARE, YOU ACCEPT ALL OF THE
 │ TERMS OF THE AGREEMENT.
 │
 │ 1. DEFINITIONS. "Software" means the code identified above in binary
 │ form, any other machine readable materials including, but not
 │ limited to, libraries, source files, header files, and data files),
 │
 │ <Ok>

MetungKP (metungkp) said : #7

 When I try to close Terminal it says this,
 "Close this terminal?" There is still a process running in this terminal. Closing the terminal will kill it.

MetungKP (metungkp) said : #8

Can someone help me with this? What do I type on the dashes?

metungkp@MetungKP:~$ sudo apt-get install sun-java6-plugin
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.

Press the TAB key and select OK with the Enter button - which will bring you to an agree page (I believe), again use TAB to get to the YES / NO and use Enter to select.

MetungKP (metungkp) said : #10

I was hitting tab and I think it froze then Terminal closed. I tried to run sudo apt-get install sun-java6-plugin again but it said this...

metungkp@MetungKP:~$ sudo apt-get install sun-java6-plugin
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.

MetungKP (metungkp) said : #11

What is missing from this...

sudo dpkg --configure -a

And did you try what was suggested? sudo dpkg --configure -a

MetungKP (metungkp) said : #13

Earlier when I tried it it didn't work, so I was thinking I has to replace the dashes with something.

So sorry it's only my second week with Ubuntu.

MetungKP (metungkp) said : #14

Thanks George Standish, that solved my question.

MetungKP (metungkp) said : #15

Just double checking. Does this mean all is good

metungkp@MetungKP:~$ sudo dpkg --configure -a
[sudo] password for metungkp:
Setting up java-common (0.38) ...
Processing triggers for man-db ...
Processing triggers for doc-base ...
Processing 2 added doc-base file(s)...
Registering documents with scrollkeeper...
metungkp@MetungKP:~$

MetungKP (metungkp) said : #16

Sorry here's more issues. Should I start from scratch?

metungkp@MetungKP:~$ sudo apt-get install sun-java6-plugin
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 sun-java6-jre : Depends: sun-java6-bin (>= 6.22-0ubuntu1~10.10) but it is not going to be installed or
                          ia32-sun-java6-bin (>= 6.22-0ubuntu1~10.10) but it is not going to be installed
                 Recommends: gsfonts-x11 but it is not going to be installed
 sun-java6-plugin : Depends: sun-java6-bin (>= 6.22-0ubuntu1~10.10) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
metungkp@MetungKP:~$ 'apt-get -f install'
metungkp@MetungKP:~$ apt-get -f install
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
metungkp@MetungKP:~$ y
y: command not found
metungkp@MetungKP:~$ apt-get -f install
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
metungkp@MetungKP:~$

mycae (mycae) said : #17

You need to run apt-get install as administrator, ie with "sudo"; the command is:

sudo apt-get -f install

You will probably be asked again to accept the licence agreement.

MetungKP (metungkp) said : #18

Thanks mycae, that solved my question.

MetungKP (metungkp) said : #19

One more final quesiton...

Does this mean it is all done?

metungkp@MetungKP:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  gsfonts-x11 odbcinst odbcinst1debian2 sun-java6-bin sun-java6-jre unixodbc
Suggested packages:
  sun-java6-plugin ia32-sun-java6-plugin sun-java6-fonts ttf-kochi-gothic
  ttf-sazanami-gothic ttf-kochi-mincho ttf-sazanami-mincho ttf-arphic-uming
  libmyodbc odbc-postgresql tdsodbc unixodbc-bin
The following NEW packages will be installed:
  gsfonts-x11 odbcinst odbcinst1debian2 sun-java6-bin unixodbc
The following packages will be upgraded:
  sun-java6-jre
1 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0B/34.7MB of archives.
After this operation, 99.9MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Preconfiguring packages ...
Selecting previously deselected package odbcinst.
(Reading database ...
dpkg: warning: files list file for package `sun-java6-jre' missing, assuming package has no files currently installed.
(Reading database ... 125418 files and directories currently installed.)
Unpacking odbcinst (from .../odbcinst_2.2.14p2-1ubuntu1_amd64.deb) ...
Selecting previously deselected package odbcinst1debian2.
Unpacking odbcinst1debian2 (from .../odbcinst1debian2_2.2.14p2-1ubuntu1_amd64.deb) ...
Selecting previously deselected package unixodbc.
Unpacking unixodbc (from .../unixodbc_2.2.14p2-1ubuntu1_amd64.deb) ...
Selecting previously deselected package sun-java6-bin.
Unpacking sun-java6-bin (from .../sun-java6-bin_6.22-0ubuntu1~10.10_amd64.deb) ...
Preparing to replace sun-java6-jre 6.22-0ubuntu1~10.10 (using .../sun-java6-jre_6.22-0ubuntu1~10.10_all.deb) ...
sun-dlj-v1-1 license has already been accepted
Unpacking replacement sun-java6-jre ...
Selecting previously deselected package gsfonts-x11.
Unpacking gsfonts-x11 (from .../gsfonts-x11_0.21_all.deb) ...
Processing triggers for man-db ...
Processing triggers for desktop-file-utils ...
Processing triggers for python-gmenu ...
Rebuilding /usr/share/applications/desktop.en_US.utf8.cache...
Processing triggers for shared-mime-info ...
Processing triggers for fontconfig ...
Processing triggers for python-support ...
Setting up gsfonts-x11 (0.21) ...
Setting up odbcinst (2.2.14p2-1ubuntu1) ...
Setting up sun-java6-jre (6.22-0ubuntu1~10.10) ...
Setting up odbcinst1debian2 (2.2.14p2-1ubuntu1) ...
Setting up unixodbc (2.2.14p2-1ubuntu1) ...
Setting up sun-java6-bin (6.22-0ubuntu1~10.10) ...
update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/ControlPanel to provide /usr/bin/ControlPanel (ControlPanel) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/java to provide /usr/bin/java (java) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/java_vm to provide /usr/bin/java_vm (java_vm) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/javaws to provide /usr/bin/javaws (javaws) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/jcontrol to provide /usr/bin/jcontrol (jcontrol) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/keytool to provide /usr/bin/keytool (keytool) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/pack200 to provide /usr/bin/pack200 (pack200) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/policytool to provide /usr/bin/policytool (policytool) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/rmid to provide /usr/bin/rmid (rmid) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/rmiregistry to provide /usr/bin/rmiregistry (rmiregistry) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/unpack200 to provide /usr/bin/unpack200 (unpack200) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/orbd to provide /usr/bin/orbd (orbd) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/servertool to provide /usr/bin/servertool (servertool) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/tnameserv to provide /usr/bin/tnameserv (tnameserv) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-sun/jre/lib/jexec to provide /usr/bin/jexec (jexec) in auto mode.
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
metungkp@MetungKP:~$

MetungKP (metungkp) said : #20

One more final quesiton...

Does this mean it is all done?

metungkp@MetungKP:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  gsfonts-x11 odbcinst odbcinst1debian2 sun-java6-bin sun-java6-jre unixodbc
Suggested packages:
  sun-java6-plugin ia32-sun-java6-plugin sun-java6-fonts ttf-kochi-gothic
  ttf-sazanami-gothic ttf-kochi-mincho ttf-sazanami-mincho ttf-arphic-uming
  libmyodbc odbc-postgresql tdsodbc unixodbc-bin
The following NEW packages will be installed:
  gsfonts-x11 odbcinst odbcinst1debian2 sun-java6-bin unixodbc
The following packages will be upgraded:
  sun-java6-jre
1 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0B/34.7MB of archives.
After this operation, 99.9MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Preconfiguring packages ...
Selecting previously deselected package odbcinst.
(Reading database ...
dpkg: warning: files list file for package `sun-java6-jre' missing, assuming package has no files currently installed.
(Reading database ... 125418 files and directories currently installed.)
Unpacking odbcinst (from .../odbcinst_2.2.14p2-1ubuntu1_amd64.deb) ...
Selecting previously deselected package odbcinst1debian2.
Unpacking odbcinst1debian2 (from .../odbcinst1debian2_2.2.14p2-1ubuntu1_amd64.deb) ...
Selecting previously deselected package unixodbc.
Unpacking unixodbc (from .../unixodbc_2.2.14p2-1ubuntu1_amd64.deb) ...
Selecting previously deselected package sun-java6-bin.
Unpacking sun-java6-bin (from .../sun-java6-bin_6.22-0ubuntu1~10.10_amd64.deb) ...
Preparing to replace sun-java6-jre 6.22-0ubuntu1~10.10 (using .../sun-java6-jre_6.22-0ubuntu1~10.10_all.deb) ...
sun-dlj-v1-1 license has already been accepted
Unpacking replacement sun-java6-jre ...
Selecting previously deselected package gsfonts-x11.
Unpacking gsfonts-x11 (from .../gsfonts-x11_0.21_all.deb) ...
Processing triggers for man-db ...
Processing triggers for desktop-file-utils ...
Processing triggers for python-gmenu ...
Rebuilding /usr/share/applications/desktop.en_US.utf8.cache...
Processing triggers for shared-mime-info ...
Processing triggers for fontconfig ...
Processing triggers for python-support ...
Setting up gsfonts-x11 (0.21) ...
Setting up odbcinst (2.2.14p2-1ubuntu1) ...
Setting up sun-java6-jre (6.22-0ubuntu1~10.10) ...
Setting up odbcinst1debian2 (2.2.14p2-1ubuntu1) ...
Setting up unixodbc (2.2.14p2-1ubuntu1) ...
Setting up sun-java6-bin (6.22-0ubuntu1~10.10) ...
update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/ControlPanel to provide /usr/bin/ControlPanel (ControlPanel) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/java to provide /usr/bin/java (java) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/java_vm to provide /usr/bin/java_vm (java_vm) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/javaws to provide /usr/bin/javaws (javaws) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/jcontrol to provide /usr/bin/jcontrol (jcontrol) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/keytool to provide /usr/bin/keytool (keytool) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/pack200 to provide /usr/bin/pack200 (pack200) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/policytool to provide /usr/bin/policytool (policytool) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/rmid to provide /usr/bin/rmid (rmid) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/rmiregistry to provide /usr/bin/rmiregistry (rmiregistry) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/unpack200 to provide /usr/bin/unpack200 (unpack200) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/orbd to provide /usr/bin/orbd (orbd) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/servertool to provide /usr/bin/servertool (servertool) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/tnameserv to provide /usr/bin/tnameserv (tnameserv) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-sun/jre/lib/jexec to provide /usr/bin/jexec (jexec) in auto mode.
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
metungkp@MetungKP:~$

Best mycae (mycae) said : #21

yep, apparently it worked.

MetungKP (metungkp) said : #22

Thanks mycae, that solved my question.