在 JDK8 for Arm 中找不到 JavaFX [英] Cant find JavaFX in JDK8 for Arm

查看:111
本文介绍了在 JDK8 for Arm 中找不到 JavaFX的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 beaglebone black 上下载并安装了适用于 ARM 的 JDK8u33,并根据此文档 (http://docs.oracle.com/javase/8/embedded/jdk-arm-8u6/index.html) 包含并支持 javafx.

I downloaded and installed JDK8u33 for ARM on my beaglebone black, and according to this documentation (http://docs.oracle.com/javase/8/embedded/jdk-arm-8u6/index.html) javafx is included and supported.

但是,我在 JRE 或 JDK 中的任何地方都找不到 jfxrt.jar,并且在简单的 javafx 程序上使用 javac 会产生javafx.application"不是包.

However, I can not find jfxrt.jar anywhere in the JRE or JDK, and using javac on a simple javafx program yields "javafx.application" is not a package.

是什么?

推荐答案

正如@eckig 所说,自从 8u33 for ARM 版本以来,Oracle 已经从 ARM 发行版中删除了 JavaFX.

As @eckig says, since the 8u33 for ARM version, Oracle has removed JavaFX from the ARM distribution.

要运行任何 JavaFX 应用程序,您可以将您的版本降级到支持 JavaFX 的最新 JDK8u6,或者您可以提供有效的 jfxrt.jar.

To run any JavaFX application you can downgrade your version to the last JDK8u6 that supported JavaFX, or you can provide a valid jfxrt.jar.

您可以按照此教程进行操作,为 ARM 交叉构建 OpenJFX,或者只是使用一些已经构建的发行版,例如 one托管在 JavaFXPorts 项目上.

And you can do it following this tutorial, cross building OpenJFX for ARM, or just using some already built distribution like this one hosted on the JavaFXPorts project.

下载armv6hf-sdk.zip 后,将其解压缩,您需要添加此命令行选项以将此外部源附加到类路径,并使用扩展机制:

Once you have downloaded armv6hf-sdk.zip, unzip it and you need to add this command line option to attach this external source to the classpath, with the extension mechanism:

-Djava.ext.dirs=<path to armv6hf-sdk>/rt/lib/ext

例如,您需要它来从其实际路径运行 JavaFX 旧示例之一:

For instance, you need this to run one of the JavaFX old samples from its actual path:

sudo /opt/jdk1.8.0_33/bin/java -Djava.ext.dirs=<path to armv6hf-sdk>/rt/lib/ext -jar BrickBreaker.jar

这篇关于在 JDK8 for Arm 中找不到 JavaFX的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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