java - Running Javafx GUI on the Raspberry Pi -


i have programs need run on raspberry pi , show output on lcd connected raspberry pi.

i have used java programming , javafx gui. on running program on pi, gives different errors, not detecting javafx extensions, not being able find main classes.

the os i'm using pi raspbian. , performing communication on putty. have tried using jdk 1.8.0, 1.7.0; ejdk; openjdk. seem give different errors.

it helpful if tell me way install relevant jdk , jre on pi, if format sd card , start on everything.

also, programs without use of javafx run without glitch on pi.

as can read here, recent jdk versions arm don't include javafx.

if want use javafx in raspberry pi, solution adding missing javafx sdk.

if install recent oracle's jdk arm here (select jdk-8u111-linux-arm32-vfp-hflt.tar.gz), need download javafx sdk gluon's site (select javafx embedded sdk armv6 hard float).

once have file, unzip it, , copy folders jdk.

assuming have downloaded armv6hf-sdk-8.60.8.zip pi/downloads folder, , have unzip folder armv6hf-sdk, in following picture:

pi arm javafx

using following commands allow moving command line files jdk required folders. can use graphic tool well.

cd downloads sudo chown -r root:root armv6hf-sdk cd armv6hf-sdk sudo mv lib/javafx-mx.jar /opt/jdk1.8.0_111/lib/ cd rt/lib/ sudo mv j* /opt/jdk1.8.0_111/jre/lib/ sudo mv arm/* /opt/jdk1.8.0_111/jre/lib/arm/ sudo mv ext/* /opt/jdk1.8.0_111/jre/lib/ext/  

after should able run java/javafx programs.

if have @ gluon ide plugins, able create projects on desktop , deploy them remotely on pi (as on desktop , mobile devices). check documentation here set build script. , check sample gluonsqlite here.


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -