gpt4 book ai didi

java-me - 从 midlet 启动另一个 midlet

转载 作者:行者123 更新时间:2023-12-02 00:24:33 25 4
gpt4 key购买 nike

我制作了程序 Test.jar,其中有一个菜单可以运行另一个程序 (Hello.jar)。我一直在寻找并得到以下代码

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

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

但不成功 - 抛出 ClassNotFoundException。还有别的办法吗?

最佳答案

API documentation for the method you use (registerAlarm)非常清楚地解释了你做错了什么:

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

关于java-me - 从 midlet 启动另一个 midlet,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9375775/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com