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

Joe Huang-Oracle
Answer
Hi, just want to make sure - did you install the ADF MObile Client extension yet? Please go to JDev-Help-Check for Updates-Official Oracle Extensions and Updates, and find Oracle ADF MObile Client Extension in the list. Check it, download it, and then restart JDev. Sounds like the extension was not installed, so it's not able to load any J2ME libraries.

If you have downloaded the extension already, please go to project properties-libraries and classpath, and then see if the sample app is referencing some third party libraries, for example something from RIM. If so, please double check the path to the library.

Once you installed the extension, you can also access the ADF Mobile Client developer guide - it contains all the documentation around what you need to install first. Please take a look and see what you need to install - at a minimum, you need to install BlackBerry JDE if you want to deploy to BlackBerry, and Windows Mobile Emulator if you want to test the app on Windows Mobile. Lastly, if you need to synchronize data, then you also need Oracle Database Lite MObile Server installation.

Thanks,

Joe Huang
Marked as Answer by 761579 · Sep 27 2020
761579
Thanks Joe, I figured it out that it is Net_rim_api.jar that is causing those errors, and added it to my project to resolve them.

Regards,
Prasad.
1 - 2
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,908 views