移动 Java 小程序?

发布于 2024-08-09 20:38:07 字数 152 浏览 3 评论 0原文

有没有允许我运行 Java Applet 的移动平台?在没有浏览器集成的情况下,至少需要 Java SE 功能。我听说过一种能够运行 Windows XP 的移动设备 - 可能包括对 Java SE 和小程序的支持;有人有这样一种设备的实际操作经验吗?它在 Java 程序执行方面表现如何?

Is there any mobile platform that allows me to run Java Applets? In absence of browser integration, at least Java SE capabilities. I've heard of a mobile device capable of running Windows XP - that would probably include support for Java SE and applets; does any one have any hands-on experience with such a device? How well does it perform in terms of Java programs execution?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

女中豪杰 2024-08-16 20:38:07

如果您参考可以嵌入 HTML 页面的旧式 Java 小程序,恕我直言,没有支持此功能的移动平台。 Applet 是用 Java SE 编写的,但据我所知,大多数平台都有 Java ME 运行时。

我不知道这与新的 Java FX 有何关联,因为它附带了一个移动配置文件。其他人可以评论这个问题吗?

If you refer to the old school java applets which can be embeded in HTML pages there is IMHO no mobile platform which support this. Applets are written in Java SE, however most platforms I know of have a Java ME runtime.

I don't know how this correlates to the new Java FX as there is a mobile profile coming along with it. Can somebody else comment on this issue?

微暖i 2024-08-16 20:38:07

鉴于 java applet 传统上非常简单,但依赖于整个 JSE 堆栈(包括 AWT),因此尝试在其上运行 applet 对于移动 java 来说并不是一个好的选择。除非“移动”当然包括平板电脑。正如您所说,它们运行 XP 并且可以运行完整的 J2SE 堆栈。这将不加修改地运行您的小程序。预计今年将发布大量平板电脑来与 iPad 竞争。例如,只是随机拉出一个。 http://www.tabletpc2.com/TEGA_Tablet_to_be_Officially_Launched.html

但如果平板电脑不适合您想到了,然后继续阅读。

如果您正在开始新的开发,J2ME 将为您提供更好的服务,J2ME 在移动设备上更为常见。 J2ME 不支持 AWT 或 Swing,但支持 UI 类。 JavaFX 也是一个候选者,因为移动配置文件不依赖于 JSE 堆栈。

如果您已经有了一个想要在移动平台上运行的小程序,您可能会发现移植它并不是那么困难。带有 MIDP 2.0 的 CLDC 具有 2D API(例如,查看 google 地图移动版或 Opera 移动版),并且可以处理应用程序所使用的大多数典型任务。

Given that java applets are traditionally quite simple, yet depend upon the entire JSE stack, including AWT, trying to run an applet on this is not a good choice for mobile java. Unless of coure "mobile" includes tablet pcs. as you say, these run XP and could run the full J2SE stack. This would run your applet unmodified. You can expect a lot of tablets to be released this year to compete with the iPad. E.g. Just one pulled at random. http://www.tabletpc2.com/TEGA_Tablet_to_be_Officially_Launched.html

But if tablets are not what you had in mind, then read on.

If you are starting new development, you will be better served with J2ME, which is far more common on mobile devices. J2ME doesn't support AWT or Swing, but has it's on UI classes. JavaFX is also a candidate, as the mobile profile doesn't depend upon the JSE stack.

If you already have an applet that you want to run on a mobile platform, you may find that porting it is not that difficult. CLDC with MIDP 2.0 has a 2D api (e.g. look at google maps mobile, or opera mobile) and can handle most of the typical tasks appets are used for.

岁月无声 2024-08-16 20:38:07

当然有很多移动互联网设备上网本 这将允许您运行java 小程序。基本上任何运行 Windows 7/Vista/XP 的系统,以及许多运行 Linux 的系统都允许您运行小程序。

至于它如何执行可能取决于小程序。我确信简单的小程序会表现得很好。一些功能更多的小程序不会那么快。上网本/MID 的功能可能与六七年前的笔记本电脑一样强大。 Java 在那个时代的计算机上运行得很好,所以它们在 MID 上也应该很好。

There are certainly a lot of mobile internet devices and netbooks which would allow you to run a java applet. Essentially anything that would run Windows 7/Vista/XP, and many that run linux would allow you to run applets.

As far as how it will perform it probably depend on the applet. I'm sure simple applets will perform just fine. Some applets which do a lot more won't be so fast. Netbooks/MID are as powerful as notebook from maybe 6 or 7 years ago. Java ran just fine on computers from that era, so they should be fine on an MID.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文