Hi everybody,
Is it possible to run a jar file with arguments passed to its MAIN class?
If yes can you help me on how to do it?
Thanx
Hi everybody,
Is it possible to run a jar file with arguments passed to its MAIN class?
If yes can you help me on how to do it?
Thanx
I dont think this can be done on Nokia, even using a C++ deamon in launching a midlet, you still have to get the Jams or MAms or whatver to launch the actuall jar/app file for you
on RIM (blackberry) however, there was the notion of a "cldc library", this had a main method, and args could be passed and interpreted by the main method
anyone know of other devices, environments in which you could do this? other than RIM?
Jason Glass
http://IChiBanComputers.Com
Hi Jason Glass,
u really crashed me!
Theoratically, I think it is possible. How a mobile phone executes a jar file?
Can we just pass parameters to the JAR file while calling?
sorry. as far as i know, on nokia there is no way, maybe someone will prove me wrong, and search the forum, as you might find something.
as far as I know, when doing OTA or even just using a jar, you place what args you would like passed in the jad or jars manifest file, then you red them at runtime
unfortunately, not dynamic, unless, you used a c++ exe or daemon, to tweak your jar or jad file just before runtime, inserting the args you want that are dynamic
you could have two apps though, and pass args to the second app from the first, once the second is started, and notifies the first, kludgy but...
Jason Glass
http://IChiBanComputers.Com
Hello,
In Series 40, there's no way.
In Series 60, as far as I know there's a JAM api, but it is only used by people involved in the JVM project itself and therefore, internal. So, for the regular developer community, I'd agree with Jason that not even a C++ daemon would be useful.
In Series 80, it is possible to pass arguments to Personal Profile applications only, not to midlets.
Daniel
As Jason pointed already out, you can define some "arguments" in the JAD file along the required fields. The midlet can then access those properties with getAppProperty() method. Not exactly as dynamic as you are looking for, but this allows the developer to sign the midlet and then configure the midlet with need to sign the midlet again and again...
Hartti
thanks dcrocha for
In Series 80, it is possible to pass arguments to Personal Profile applications only, not to midlets.
and thanks for confirmation hartti
did you guys/girls like my idea about a C++ daemon, tweaking the jad file, before launching MIDlet, or is this unfeasible, wev'e all see where they are stored, but is that just an empty shell, and tewaking the jad wont work?
Jason Glass
http://IChiBanComputers.Com
thanx to all of you for the clarification!
So, the best way is to communicate internally through a "localhost" channnel with the following steps:
1- Application A runs Application B
2- Application A sends to B the required arguments
the question now is how to run Application B by Application A
I think I better search for that, or, if any one would like to help by a reply then it is really appreciated!
This kinda answers all of the questions...possibly.Originally Posted by Al Akaishi
Jason Glass
http://IChiBanComputers.Com
al akaishi
you probably already saw the link for the c++ daemon, else here it is
http://www.symbian.com/developer/tec...ework_v1.1.zip
Jason Glass
http://IChiBanComputers.Com
Hi,
Just a comment. I would be great to be able to pass JVM arguments for the JVM (maybe it does not make sense for KVM but it could be good for CLDC HI). Perhaps that will be possible in the future...
BR