Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
423 views
in Technique[技术] by (71.8m points)

java - How can i get JavaFX working on 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:

"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.

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/

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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

  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. 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/

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.

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...