可以在Raspberry Pi上使用JavaFX [英] Can JavaFX be used on Raspberry Pi

查看:181
本文介绍了可以在Raspberry Pi上使用JavaFX的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用JavaFX为Raspberry Pi编写程序,但我的Raspberry Pi上的Java SDK 8似乎没有JavaFX支持。

I want to write program for Raspberry Pi using JavaFX but it appears that Java SDK 8 on my Raspberry Pi does not have JavaFX support.

所以我的问题是 Raspberry Pi 2/3 是否支持JavaFX?如果是,为什么JDK在平台上没有JavaFX库?有没有办法支持它或者值得在Raspberry PI上编写JavaFX应用程序?

So my question is whether JavaFX is supported on Raspberry Pi 2/3? If yes, why does JDK not have JavaFX libraries on the platform ? Is there a way to support it or worth writing JavaFX application on Raspberry PI ?

正在使用的Java版本是 1.8.0_65

Java version in use is 1.8.0_65.

推荐答案

如果您使用的是 Oracle JDK for ARM 8u33 / Oracle Java SE Embedded 8u33 或更高版本,您将找不到JDK中捆绑的JavaFX。 Oracle从8u33开始从ARM包中删除了JavaFX Embedded。有关更多信息,请查看来自OpenJFX的此主题邮件列表

If you are using Oracle JDK for ARM 8u33 / Oracle Java SE Embedded 8u33 or later, you will not find JavaFX bundled in the JDK. Oracle removed JavaFX Embedded from the ARM bundle starting from 8u33. For more information have a look at this thread from the OpenJFX mailing list.

那么,我们仍然可以在Raspberry PI上使用JavaFX吗?

So, can we still use JavaFX on Raspberry PI?

嗯,当然可以。以下几种方法仍然可以在嵌入式设备上运行JavaFX:

Well, of course you can. Here are a few ways you can still run JavaFX on embedded devices :


  1. 最好的方法是安装嵌入式SDK,由 Gluon 提供,其中包括 jfxrt。 jar for ARM。您可以将jar复制到JDK中,并在Raspberry PI上运行JavaFX。 Gluon通过帮助用户通过插件部署JavaFX插件进一步扩展了支持。看看:

  1. Your best shot is to install embedded SDK, provied by Gluon, which includes jfxrt.jar for ARM. You can copy the jar into the JDK and have JavaFX running on Raspberry PI. Gluon further extends the support by helping users deploy there JavaFX plugin via plugin. Have a look at :

  • Getting Started for Embedded
  • Building and Deploying for Embedded

如果您想了解有关嵌入式JavaFX的更多信息,可以使用以下链接:

If you want to know more about JavaFX on embedded, these are some useful links :

  • Cross Building for ARM Hard Float
  • Where's JavaFX in recent Java 8u33 for the ARM ?
  • For JavaFX 11, one can read JavaFX 11 early access on embedded.

这篇关于可以在Raspberry Pi上使用JavaFX的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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