Skip to Main Content

Java Development Tools

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!

ADF Mobile Client : Error while trying to import javax.microedition.*

761579Jun 4 2010 — edited Jun 7 2010
Hi,

JDev throws errors at compile time when I try to deploy a sample ADF Mobile Client application.
These errors are related to javax.microedition.io.* imports.

Error(11,29): package javax.microedition.io does not exist
Error(12,29): package javax.microedition.io does not exist
Error(180,9): cannot find class HttpConnection
Error(191,27): cannot find class HttpConnection
Error(191,42): cannot find variable Connector
Error(250,49): inconvertible types
Error(303,40): cannot find variable HttpConnection

Any pointers as to how these errors could be resolved?

Is there a JDev Wireless extension that should be installed to resolve these J2ME related errors?

For JDev 10g, I could locate one such extension called JWE here : http://www.oracle.com/technology/products/iaswe/archive/developer/index.html
I could not find any similar extension for JDeveloper 11.1.3.

Regards,
Prasad.
This post has been answered by Joe Huang-Oracle on Jun 5 2010
Jump to Answer

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 Jul 5 2010
Added on Jun 4 2010
2 comments
936 views