gpt4 book ai didi

java - 在 JavaMe 中调试(Midlet 或 JAD)

转载 作者:行者123 更新时间:2023-12-04 06:35:57 25 4
gpt4 key购买 nike

我可以将我的应用程序调试为“Emulated Java Me Midlet”或“Emulated Java Me Jad”。这些类型有什么区别?现在我的应用程序只在调试中工作,就像模拟的 java me jad。

当我将它作为 midlet 运行时,出现以下错误:

Cannot create PortForwarder with necessary parameters: Failed to get device id for "null"! Syntax:

emulator [arguments]

In order to get commands supported by given device run: emulator.exe -Xdevice: -Xquery



有人知道如何解决这个问题吗?

最佳答案

"null"设备 ID 表明这里可能存在配置问题。我建议检查 Debug Configurations->Emulation 选项卡并检查是否一切正常。

您也有可能遇到过这个已知问题:https://blogs.oracle.com/javamesdk/entry/eclipse_java_me_sdk_issue :

If you have had issues with running your MIDlet in Eclipse + MTJ (Eclipse ME), then this article is relevant to you.

We found out that "Run as emulated MIDlet" option is not supported by Java ME SDK 3.0.5. "Run as emulated MIDlet" means that you are executing a specific MIDlet in the jar file, where jar file contains more than one MIDlet.

Please use "Run as emulated Java ME JAD" option instead...

关于java - 在 JavaMe 中调试(Midlet 或 JAD),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4876947/

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