Skip to main content


1 reply [Last post]
Joined: 2007-12-29

I want to call C routine from J2ME. How to do this??

Message was edited by: mzeeshan

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2003-06-15

The simple answer is you don't, at least not in CLDC based JavaME.
Since there is no classloader, and there is no standard OS under the java vm implementation. You can call to other applications on these devices if the support has been setup in the MIDlet.PlatformRequest(). This can be used for starting things like a browser, or dialing, and such.

However if you are working with a CDC device then you may be able to use some
of the native call style coding (JNI) to achieve your goal. Or you might look at the
Runtime.exec() to execute applications.

Happy Holidays.