简体   繁体   English

适用于iPhone ipad的JavaFX

[英]JavaFX for iphone ipad

i need to know that can JavaFX application run into IPHONE IPAD? 我需要知道JavaFX应用程序可以运行到IPHONE IPAD吗? Is there any JavaFX runtime in these device. 这些设备中是否有任何JavaFX运行时。

Well, actually, it can . 好吧,实际上,它可以

You can use JavaFXPorts or somethings else. 您可以使用JavaFXPorts或其他方式。 But, JavaFXPorts doesn't provide full support of JavaFX. 但是,JavaFXPorts没有完全支持JavaFX。

No it can't. 不,它不能。 The ipad cannot run JavaFX, Flash, Silverlight, or Java Applets. iPad无法运行JavaFX,Flash,Silverlight或Java Applet。 Apple has explicitly not allowed these. 苹果明确禁止这些。 The basic options are HTML5/Javascript apps on the web or native apps which run on your phone. 基本选项是网络上的HTML5 / Javascript应用程序或在手机上运行的本机应用程序。 If you want to run Java on an ipad, the closest you can come is GWT which you can use to write a web app and host on a server. 如果要在ipad上运行Java,则最接近的是GWT ,可以用来编写Web应用程序并在服务器上托管。 It cannot be installed on the phone as a native app (except perhaps through PhoneGap). 它不能作为本机应用程序安装在手机上(可能通过PhoneGap除外)。 The ipad user would then access your app through the web browser. 然后,ipad用户将通过网络浏览器访问您的应用。

If you are serious about writing apps for a phone in Java, you should consider Android . 如果您真的想用Java编写用于手机的应用程序,则应考虑使用Android You can write Android apps in Java, though again not in JavaFX. 您可以用Java编写Android应用程序,尽管同样不能使用JavaFX。

[EDIT] [编辑]

Apparently this has changed since I first answered this question as seen in this post. 自从我首次回答这个问题以来,这种情况显然已经改变了 It is now possible to run JavaFX on ios. 现在可以在ios上运行JavaFX。

It can't right now. 现在不能。 A couple of days ago, however, at the JavaOne conference, a demo of a JavaFX app running on an iPad was made. 但是,几天前,在JavaOne会议上,演示了在iPad上运行的JavaFX应用程序的演示。

From this article : 这篇文章

Java has been barred from Apple's iOS devices, thanks to Apple's official policy not allowing third-party technologies, such as Flash Player or Java, on the units. 由于Apple的官方政策不允许在设备上使用第三方技术(例如Flash Player或Java),因此Java已被禁止从Apple的iOS设备中使用。 But a brief demonstration showed a JavaFX game running on an iPad. 但是简短的演示显示了在iPad上运行的JavaFX游戏。 This effort effectively puts Java on iOS but is still in a developmental mode. 这项工作有效地将Java置于iOS上,但仍处于开发模式。 "We want to hear from the community. If this is something you want to see, we're happy to make it a priority," said Nandini Ramani, vice president of development in the Oracle Fusion Middleware Group. Oracle融合中间件事业部开发副总裁Nandini Ramani表示:“我们希望听到社区的声音。如果您希望看到这一点,我们很高兴将其作为优先事项。”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM