1 Reply Latest reply on Aug 19, 2013 3:24 PM by sgokak

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


      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:


      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:


      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



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