JavaME:使模拟器运行不同的 JRE
My first steps with JavaME, currently using Sun's WTK 3.0
I understand a JavaME device runs its own Runtime Environment, and that's a 1.3 JRE.
Is it possible to make the emulator run the JavaSE JDK 6 ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
JavaME 运行时不是 JRE 1.3,
它是一个 Microedition 运行时,基于 JRE 1.3 发布时的 java 标准版本。
您可以使用 JavaSE JDK 6 开发 JavaME 运行时(这与微仿真器差不多),但 MIDlet 的应用程序管理和生命周期与 JavaSE 应用程序的不匹配。
编写 MIDlet 时不能使用 JavaSE 语言的最新规范(通用性...)。
The JavaME runtime is not JRE 1.3
It is a Microedition runtime BASED on what java standard edition was back around the time JRE 1.3 was released.
You can use JavaSE JDK 6 to develop a JavaME runtime (that's pretty much what microemulator is) but the application management and lifecycle of a MIDlet doesnt match that of a JavaSE application.
You cannot use the latest specification of the JavaSE language (genericity... ) when writing MIDlets.