如何在 Mac OSX 上同时运行两个 Java ME 模拟器
我正在 Netbeans 中开发移动应用程序,但在使用 SMS 测试通信时遇到了问题。为了测试这一点,我显然需要运行两个模拟器,我知道这应该像运行该项目两次一样简单,但在 Mac OSX 上我收到错误“MIDlet 套件已在运行。”。
我试图尽可能地研究这个问题,但网上没有太多关于它的信息。我发现的最好的 这是另一个 Stack Overflow 问题,有着同样的问题,但从未得到满意的答案,所以我再次询问,希望有人现在能更好地了解如何处理这个问题。
I'm developing a mobile application in Netbeans, but I'm running into problems when testing communication using SMS. In order to test this, I obviously need two emulators running, which I'm aware should be as easy as running the project twice, but on Mac OSX I'm given the error "MIDlet suite is already running.".
I've tried to research this problem as best as possible, but there isn;t a lot of information on it available online. The best I've found this another Stack Overflow question with the same problem that never got a satisfactory answer, so I'm asking again in the hope that someone will have a better idea of how to deal with this by now.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在 NetBeans 中,您必须在启动第二个项目之前更改主项目:运行/设置主项目/...,然后第二个项目将在与第一个项目相同的模拟器窗口中启动。您将能够在模拟器中运行的 midlet 之间进行切换。
此外,如果您在开始第二个项目之前更改项目配置(电话型号),您将获得两个具有不同电话号码的模拟器窗口。
In NetBeans, you must change the main project before starting the second one: Run/Set main project/... then the second project will start in the same emulator window as the first one. You will be able to switch between the running midlets in the emulator.
Furthermore, if you change the project configuration (phone model) before starting the second project, you will get two emulator windows with different phone numbers.
在 NetBeans 中同时运行两个模拟器:
使用一个运行配置(即默认
CldcPhone1
)运行应用程序,然后更改配置,
在项目设置中。
或者在运行按钮旁边,并设置另一个模拟器,
IE。默认
CldcPhone1
并再次运行。两个模拟器将同时运行,您可以在它们之间进行交互。
Getting two emulators to run at the same time in NetBeans:
Run your application with one run configuration,
i.e. Default
CldcPhone1
, and then change the configuration,either at the project settings.
Or next to the run button, and set up to another emulator,
Ie. Default
CldcPhone1
and run again.The two emulators will run together simultaneously, and you can interact between them.