我怎样才能让 JavaFX 在 raspberry pi 3 上工作 [英] How can i get JavaFX working on raspberry pi 3

查看:40
本文介绍了我怎样才能让 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:

在活动的 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/下载/并按照此处的说明进行操作: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 在 raspberry pi 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 下载到您的嵌入式设备,可从 这里.您必须下载此文件: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. 下载最新版本的 JavaFX 嵌入式 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/

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

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