Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Oracle Java 7 Installation in Ubuntu 12.04 - JB-java.desktop

emailleninAug 6 2013 — edited Aug 19 2013

In my Ubuntu server, I added ppa:webupd8team/java repository and tried to install oracle-java7-installer. But it results in the follwing error

root@emaillenin:~# apt-get install oracle-java7-installer

Reading package lists... Done

Building dependency tree

Reading state information... Done

Suggested packages:

  binfmt-support visualvm ttf-baekmuk ttf-unfonts ttf-unfonts-core ttf-kochi-gothic ttf-sazanami-gothic ttf-kochi-mincho ttf-sazanami-mincho

  ttf-arphic-uming firefox firefox-2 iceweasel mozilla-firefox iceape-browser mozilla-browser epiphany-gecko epiphany-webkit epiphany-browser galeon

  midbrowser moblin-web-browser xulrunner xulrunner-1.9 konqueror chromium-browser midori google-chrome

The following NEW packages will be installed:

  oracle-java7-installer

0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.

Need to get 0 B/17.6 kB of archives.

After this operation, 106 kB of additional disk space will be used.

Preconfiguring packages ...

(Reading database ... 48156 files and directories currently installed.)

Unpacking oracle-java7-installer (from .../oracle-java7-installer_7u25-0~webupd8~1_all.deb) ...

oracle-license-v1-1 license has already been accepted

dpkg: error processing /var/cache/apt/archives/oracle-java7-installer_7u25-0~webupd8~1_all.deb (--unpack):

trying to overwrite '/usr/share/applications/JB-java.desktop', which is also in package oracle-java6-installer 6u37-0~eugenesan~precise1

Errors were encountered while processing:

/var/cache/apt/archives/oracle-java7-installer_7u25-0~webupd8~1_all.deb

E: Sub-process /usr/bin/dpkg returned an error code (1)

root@emaillenin:~# ls /usr/share/applications/JB-java.desktop

ls: cannot access /usr/share/applications/JB-java.desktop: No such file or directory

root@emaillenin:~#

How to resolve this error? Are there any other way to install Java 7?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 16 2013
Added on Aug 6 2013
1 comment
1,910 views