Java alternative in Ubuntu
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:
- Last query:
- Last reply:
Related bugs
Related FAQ:
None Link to a FAQ
Revision history for this message
|
#1 |
MetungKP,
If you want the regular "Sun" java you need to add the partner repository:
sudo add-apt-repository "deb http://
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
Revision history for this message
|
#2 |
Thanks! If you think this is best one then I will install this one.
Revision history for this message
|
#3 |
Thanks! If you think this is best one then I will install this one.
Revision history for this message
|
#4 |
Is there anything I need to do to this page? It has been stuck here for a good 20+ minutes.
Revision history for this message
|
#5 |
Is there anything I need to do to this page? It has been stuck here for a good 20+ minutes.
Revision history for this message
|
#6 |
Is there anything I need to do to this page? It has been stuck here for a good 20+ minutes.
┌─────
│ │
│ 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>
Revision history for this message
|
#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.
Revision history for this message
|
#8 |
Can someone help me with this? What do I type on the dashes?
metungkp@
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
Revision history for this message
|
#9 |
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.
Revision history for this message
|
#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@
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
Revision history for this message
|
#11 |
What is missing from this...
sudo dpkg --configure -a
Revision history for this message
|
#12 |
And did you try what was suggested? sudo dpkg --configure -a
Revision history for this message
|
#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.
Revision history for this message
|
#14 |
Thanks George Standish, that solved my question.
Revision history for this message
|
#15 |
Just double checking. Does this mean all is good
metungkp@
[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@
Revision history for this message
|
#16 |
Sorry here's more issues. Should I start from scratch?
metungkp@
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~
sun-java6-plugin : Depends: sun-java6-bin (>= 6.22-0ubuntu1~
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
metungkp@
metungkp@
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@
y: command not found
metungkp@
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@
Revision history for this message
|
#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.
Revision history for this message
|
#18 |
Thanks mycae, that solved my question.
Revision history for this message
|
#19 |
One more final quesiton...
Does this mean it is all done?
metungkp@
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-
ttf-sazanami-
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_
Selecting previously deselected package odbcinst1debian2.
Unpacking odbcinst1debian2 (from .../odbcinst1de
Selecting previously deselected package unixodbc.
Unpacking unixodbc (from .../unixodbc_
Selecting previously deselected package sun-java6-bin.
Unpacking sun-java6-bin (from .../sun-
Preparing to replace sun-java6-jre 6.22-0ubuntu1~10.10 (using .../sun-
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-
Processing triggers for man-db ...
Processing triggers for desktop-file-utils ...
Processing triggers for python-gmenu ...
Rebuilding /usr/share/
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~
Setting up odbcinst1debian2 (2.2.14p2-1ubuntu1) ...
Setting up unixodbc (2.2.14p2-1ubuntu1) ...
Setting up sun-java6-bin (6.22-0ubuntu1~
update-
update-
update-
update-
update-
update-
update-
update-
update-
update-
update-
update-
update-
update-
update-
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
metungkp@
Revision history for this message
|
#20 |
One more final quesiton...
Does this mean it is all done?
metungkp@
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-
ttf-sazanami-
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_
Selecting previously deselected package odbcinst1debian2.
Unpacking odbcinst1debian2 (from .../odbcinst1de
Selecting previously deselected package unixodbc.
Unpacking unixodbc (from .../unixodbc_
Selecting previously deselected package sun-java6-bin.
Unpacking sun-java6-bin (from .../sun-
Preparing to replace sun-java6-jre 6.22-0ubuntu1~10.10 (using .../sun-
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-
Processing triggers for man-db ...
Processing triggers for desktop-file-utils ...
Processing triggers for python-gmenu ...
Rebuilding /usr/share/
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~
Setting up odbcinst1debian2 (2.2.14p2-1ubuntu1) ...
Setting up unixodbc (2.2.14p2-1ubuntu1) ...
Setting up sun-java6-bin (6.22-0ubuntu1~
update-
update-
update-
update-
update-
update-
update-
update-
update-
update-
update-
update-
update-
update-
update-
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
metungkp@
Revision history for this message
|
#22 |
Thanks mycae, that solved my question.