是否可以在 iOS、Android 或 Windows Phone 8 上运行 JavaFX 应用程序? [英] Is it possible to run JavaFX applications on iOS, Android or Windows Phone 8?

查看:28
本文介绍了是否可以在 iOS、Android 或 Windows Phone 8 上运行 JavaFX 应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用 JavaFX 开发整个应用程序并在 iOS、Android 或 Windows Phone 8 上运行它,而无需编写特定于平台的代码?

Can one develop an entire application using JavaFX and run it on iOS, Android or Windows Phone 8, without writing platform-specific code?

推荐答案

背景

Invariant's answer 是一个很好的资源,了解一切是如何开始的,以及 JavaFX 在嵌入式和移动设备上的状态如何2014 年初.但是,从那时起很多发生了变化,偶然发现此线程的用户无法获得更新的信息.

Background

Invariant's answer is a good resource for how everything was started and what was the state of JavaFX on embedded and mobile in beginning of 2014. But, a lot has changed since then and the users who stumble on this thread do not get the updated information.

我的大部分观点都与 Invariant 的答案有关,所以我建议先看一遍.

Most of my points are related to Invariant's answer, so I would suggest to go through it first.

更新

JavaFXPorts 已被弃用.Gluon Mobile 现在在底层使用 GraalVM.使用 GraalVM 有多种优势.请查看 来自 Gluon 的博文.IDE 插件已更新为使用 Gluon 客户端插件,该插件利用 GraalVM 为 Android/iOS 编译应用程序.

JavaFXPorts has been deprecated. Gluon Mobile now uses GraalVM underneath. There are multiple advantages of using GraalVM. Please check this blogpost from Gluon. The IDE plugins have been updated to use Gluon Client plugins which leverages GraalVM to AOT compile applications for Android/iOS.

JavaFXPorts 的旧答案

先说个坏消息:

现在,一些好消息:

  • JavaFX 仍可在 Android、iOS 和大多数嵌入式设备上运行
  • 可从 此处
  • JavaFXPorts 项目仍在蓬勃发展,在移动设备上运行 JavaFX 比以往任何时候都更容易,这一切都归功于 IDE 插件建立在这些 SDK 之上,可让您在几分钟内开始使用,无需安装任何 SDK
  • JavaFX 3D 现在支持移动设备
  • GluonVM 替换 RoboVM,为移动开发人员提供 Java 9 支持.是的,你没听错.
  • 移动项目已由 Oracle 启动,以支持所有主要移动平台上的 JDK.它也应该支持 JavaFX ;)
  • JavaFX still runs on Android, iOS and most of the Embedded devices
  • JavaFXPorts SDK for android, iOS and embedded devices can be downloaded from here
  • JavaFXPorts project is still thriving and it is easier than ever to run JavaFX on mobile devices, all thanks to the IDE plugins that is built on top of these SDKs and gets you started in a few minutes without the hassle of installing any SDK
  • JavaFX 3D is now supported on mobile devices
  • GluonVM to replace RoboVM enabling Java 9 support for mobile developers. Yes, you heard it right.
  • Mobile Project has been launched by Oracle to support JDK on all major mobile platforms. It should support JavaFX as well ;)

如果你不是 DIY 的那种,我建议你在你最喜欢的 IDE 上安装 IDE 插件并开始使用.

If you are not the DIY kind, I would suggest to install the IDE plugin on your favourite IDE and get started.

关于如何开始的大部分文档都可以在这里找到,一些示例可以可在此处找到.

Most of the documentation on how to get started can be found here and some of the samples can be found here.

这篇关于是否可以在 iOS、Android 或 Windows Phone 8 上运行 JavaFX 应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆