在 Mac OSX 下开发 CLDC 或 J2ME 应用程序?
我注意到Oracle现在已经发布了适用于OSX的Java Platform Micro Edition SDK。它可以工作,它可以编译提供的示例,并且附带的手机模拟器也可以工作。但是如何从 Ant 或 Eclipse 编译我自己的 J2ME 项目?
有很多相关的 jar 但它们都在“.app”内在 /Applications 目录中。当我将工具链路径放入“.app”内部时,Eclipse 不喜欢它。
I have noticed that Oracle now has released a Java Platform Micro Edition SDK for OSX. It works, it can compile the provided examples and the included phone emulator works too. But how do I compile my own J2ME project from Ant or Eclipse?
There are a lot of related jars but they are all inside the ".app" in the /Applications directory. Eclipse does not like it when I put a toolchain path to inside the ".app".
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您尝试过使用 EclipseME 插件吗?它有助于将 JavaME (J2ME) 开发集成到 Eclipse 中。以下是使用 Eclipse 的指南:
Eclipse ME / 配置
您会发现大量文档以及如何操作。
如果您不喜欢 EclipseME,我个人发现 Netbeans 非常适合移动开发:
Netbeans JavaME 页面
另外,您的问题并不具体,但您提供的链接似乎表明您想使用 MTJ。在这种情况下,请使用此文档来指导您完成:
Eclipse MTJ - 入门
Have you tried using the EclipseME plugin? It helps integrate JavaME (J2ME) development into Eclipse. Here's a guide for getting it working with Eclipse:
Eclipse ME / Configuration
You'll find plenty of documentation and how tos.
If you don't like EclipseME, I personally found Netbeans very good for mobile development:
Netbeans JavaME Page
Also, you weren't specific in your question, but the link you've provided seems to indicate you want to use MTJ. In that case, use this documentation to guide you through:
Eclipse MTJ - Getting Started
如果你想使用 ANT,我只是从 Windows SDK 复制了所需的 jar,并使用了 osx 3.0 sdk 中的预验证器和 javac,效果很好!
If you want to use ANT I have simply copied over the required jars from the Windows SDK and just used the pre verifier and javac from the osx 3.0 sdk, works well!