File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java Micro Edition and the fly likes calling one j2me application from another Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "calling one j2me application from another" Watch "calling one j2me application from another" New topic

calling one j2me application from another

Vijesh Vijayanath

Joined: May 13, 2006
Posts: 26

hai all....
there are two different j2me applications(.jar files). I am in need of calling one application(.jar) from another.
What can i do for that in code?

thanks in adance

Vijesh Vijayanath,
Solution Architect - Mobile applications
Ransika deSilva
Ranch Hand

Joined: Feb 18, 2003
Posts: 524
CLDC supports 2 types of security mechanisms, Low level security and application level security. The application security makes the Midlet suite to run inside a Sandbox model. Hence a midlet suite can't access any other midlet suite. So your requirement can't be facilitated.


SCJP 1.4, SCMAD 1.0<br />SCWCD, SCBCD (in progress)
Eduardo Marques
Ranch Hand

Joined: Feb 19, 2005
Posts: 231
You can try using Push Registry alarms, if the device supports it.
This basically allows scheduling in time the execution of another MIDlet in the *same* MIDlet suite ie implying they are part of the same jar.
[ October 12, 2007: Message edited by: Eduardo Marques ]

Eduardo Marques
Get ready for your SCMAD certification at - See what all the buzz is about ...
Bill Denniston

Joined: Feb 18, 2006
Posts: 5

If a Midlet from one .jar cannot instantiate for execution a Midlet in another .jar on the same device, how does a new Midlet application get installed on a device by download, etc. when it didn't come in the initial .jar on the device? It would seem to maintain the single .jar restriction that a device must be able to add a Midlet (and all its supporting classes and resources) to the single .jar, or delete them, and update the .jar manifest accordingly. That sounds like a lot of overhead for what appears to be a common device behavior. What classes and methods in the CLDC MIDP support this manipulation?

I would appreciate an explanation of a good approach to management of dynamic content under these conditions. What specific capabilities, features, classes, and/or methods must be implemented in the device profile to accommodate dynamic applications and content?


Bill Denniston
It is sorta covered in the JavaRanch Style Guide.
subject: calling one j2me application from another
It's not a secret anymore!