Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Launch another midlet from midlet

I made the program Test.jar which there is a menu to run another program (Hello.jar). I've been looking for and get the following code

callLauncher("javaapp:midlet-name=Hello;midlet-vendor=Vendor");

and

PushRegistry.registerAlarm("Hello",now.getTime()+100);

but not successful - throws ClassNotFoundException. Is there another way?

like image 825
andysiahaan Avatar asked Mar 21 '26 07:03

andysiahaan


1 Answers

API documentation for the method you use (registerAlarm) explains pretty clearly what you did wrong:

Throws:
...ClassNotFoundException - if the MIDlet class name can not be found in the current MIDlet suite or if this class is not included in any of the MIDlet-<n> records in the descriptor file or the jar file manifest or if the midlet argument is null

like image 58
gnat Avatar answered Mar 22 '26 21:03

gnat



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!