8上运行JavaFX应用程序

8上运行JavaFX应用程序

本文介绍了是否可以在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?

推荐答案

背景



是个不错的选择2014年初,嵌入式和移动设备上的所有内容如何开始以及JavaFX的状态是什么。但是, 很多 从那时起发生了变化,并且发现了绊倒的用户这个帖子没有得到更新的信息。

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.

首先出现一些坏消息:




  • RoboVM is dead
  • Oracle killed JavaFX on Embedded Devices

现在,一些好消息:


  • JavaFX仍在Android,iOS和大多数嵌入式设备上运行

  • 适用于Android,iOS和Java的JavaFXPorts SDK嵌入式设备可以从下载

  • JavaFXPorts项目所有这些都归功于

  • 取代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应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 14:44