B4J Question B4J on Raspberry Pi With Java 11

Jon Eskdale

Member
Licensed User
Longtime User
Hi - Trying to get this working as per Erel's Tutorial post.
Must be missing something - suggestions would be very welcome
Looking at the Java 11 download it says it includes JavaFX
When I start the bridge I get the messages as per the tutorial except after
JavaFX modules: (I don't get any listed.)

Just JavaFX module:
Connected!

sudo ./jdk-11/bin/java -jar b4j-bridge.jar
B4J-Bridge v1.43
Running on Java 11+
External JavaFX not found. Searching for internal modules...
Waiting for connections (port=6790)...
My IP address is 192.168.1.139
FTP Server started: ftp://192.168.1.139:6781
Start B4J-Bridge with -disableftp to disable.
JavaFX modules:
Connected!

The log if I try to run a program shows
Error: --add-modules= requires modules to be specified

Using bellsoft-jdk11+28-linux-arm32-vfp-hflt.tar
Pi 3B+ with latest updated OS

Thanks
Jon
 
Last edited:

Jon Eskdale

Member
Licensed User
Longtime User
Thanks Erel

using https://github.com/bell-sw/Liberica...ft-jdk11.0.1-linux-arm32-vfp-hflt-lite.tar.gz

pi@raspberrypi:~ $ sudo jdk-11.0.1/bin/java -jar b4j-bridge.jar
B4J-Bridge v1.43
Running on Java 11+
External JavaFX not found. Searching for internal modules...
Waiting for connections (port=6790)...
My IP address is: 192.168.1.139
FTP Server started: ftp://192.168.1.139:6781
Start B4J-Bridge with -disableftp to disable.
JavaFX modules: javafx.base,javafx.controls,javafx.fxml,javafx.graphics,javafx.media,javafx.web
Connected!
Starting program

Using MyFirstProgram sample I get

WARNING: Unknown module: javafx.swing specified to --add-opens
WARNING: Unknown module: javafx.swing specified to --add-opens
WARNING: Unknown module: javafx.swing specified to --add-opens
WARNING: package com.sun.glass.ui.win not in javafx.graphics
WARNING: package com.sun.prism.d3d not in javafx.graphics
WARNING: Unknown module: javafx.swt specified to --add-opens
WARNING: Unknown module: javafx.swing specified to --add-opens
Waiting for debugger to connect...
Program started.

First time I ran it Raspi screen went blank
and had to close it.

Second time I set breakpoints
And it hits a breakpoint on Sub AppStart
And I can step through AppStart and the New Sub
then let it run and got



There is a pop up onscreen keyboard which appears and covers half the screen but the Bluetooth keyboard that was connected and working prior to running the app, no longer works.

Will Experiment more - are the warnings anything to be concerned about?

Thanks Jon
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…