我怎样才能让 JavaFX 在树莓派 3 上工作

How can i get JavaFX working on raspberry pi 3(我怎样才能让 JavaFX 在树莓派 3 上工作)

本文介绍了我怎样才能让 JavaFX 在树莓派 3 上工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请有人为我提供简单的分步说明,让 javafx 在 raspberry pi 3 上工作.我已经尝试了一整天将 javafx 添加到 raspberry pi 3,但我仍然收到错误:

please can someone provide me with simple step by step instructions for getting javafx working on raspberry pi 3. I have tried all day to add javafx to raspberry pi 3 and i am still getting the error:

在活动的 JDK 中找不到 JavaFX 部署库"

"JavaFX deployment library not found in the active JDK"

当我尝试构建时在 netbeans 中,即使我的代码中没有显示错误.

in netbeans when i try to build, even though there are no errors showing in my code.

我在这里下载了用于 javaFX 嵌入式 sdk 的 gluon 社区构建:http://gluonhq.com/labs/javafxports/downloads/并按照此处的说明进行操作:http://docs.gluonhq.com/javafxports/

I downloaded the gluon community build for javaFX embedded sdk here: http://gluonhq.com/labs/javafxports/downloads/ and followed the instructions here: http://docs.gluonhq.com/javafxports/

请任何人提供任何易于遵循的建议,让 javaFX 在树莓派 3 上运行!我对linux很陌生

please can anyone offer any easy to follow advice on getting javaFX working on raspberry pi 3! i am quite new to linux

推荐答案

如果您已阅读文档 这里,在 2.1.4 嵌入式先决条件下:

If you have read the documentation here, under 2.1.4 Prerequisites for Embedded:

  1. 从 这里.您必须下载此文件:http://download.oracle.com/otn-pub/java/jdk/8u91-b14/jdk-8u91-linux-arm32-vfp-hflt.tar.gz李>
  1. Download the latest version of JDK 8 for ARM to your embedded device, available from here. You will have to download this file: http://download.oracle.com/otn-pub/java/jdk/8u91-b14/jdk-8u91-linux-arm32-vfp-hflt.tar.gz

你可以先下载到你的电脑上,然后移动到树莓派上,或者直接从树莓派上下载,解压安装.

You can download it to your computer first, and then move it to the Pi, or directly download it from the Raspberry Pi, unzip and install.

  1. 在此处,然后复制到您的 Pi.将下载的JavaFX Embedded SDK解压,将以下文件复制到JDK 8安装目录中:

  1. Download the latest version of the JavaFX Embedded SDK port, available here, and copy to your Pi. Unzip the downloaded JavaFX Embedded SDK and copy the following files into the JDK 8 installation directory:

  • armv6hf-sdk/rt/lib/ext/jfxrt.jar --> jre/lib/ext/
  • armv6hf-sdk/rt/lib/arm/* --> jre/lib/arm/
  • armv6hf-sdk/rt/lib/javafx.platform.properties --> jre/lib/
  • armv6hf-sdk/rt/lib/javafx.properties --> jre/lib/
  • armv6hf-sdk/rt/lib/jfxswt.jar --> jre/lib/

您可以在 Pi 上部署 JavaFX 项目,直接从计算机复制它们,或者使用 NetBeans(远程平台)或 IDE 的 Gluon 插件提供的远程部署.

You can deploy JavaFX projects on your Pi directly copying them from your computer, or using the remote deployment available with NetBeans (Remote Platform) or with the Gluon Plugin for your IDE.

有关在 NetBeans 上创建远程平台的简短指南,请查看此 链接.对于 Gluon 插件,请检查这些设置.

For a short guide on creating a remote platform on NetBeans, check this link. For the Gluon Plugin, check these settings.

这篇关于我怎样才能让 JavaFX 在树莓派 3 上工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本文标题为:我怎样才能让 JavaFX 在树莓派 3 上工作

基础教程推荐