本文介绍了如何让JavaFX在raspberry pi 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:

当我尝试构建时,netbeans中的活动JDK中找不到JavaFX部署库

"JavaFX deployment library not found in the active JDK"

,即使没有显示错误我的代码。

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

我在这里下载了javaFX嵌入式sdk的胶子社区版本:
并按照此处的说明操作:

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. 将适用于ARM的最新版JDK 8下载到您的嵌入式设备,可从。您必须下载此文件:

  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

您可以先将它下载到您的计算机,然后将其移至Pi,或直接从Raspberry Pi下载,解压缩并安装。

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. 下载最新版本的JavaFX Embedded SDK端口,可用,并复制到你的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 /

  • 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(远程平台)或Gluon插件提供的远程部署您的IDE。

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在raspberry pi 3上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-27 17:24