B4J Question Raspberry Pi 4 - B4J Bridge * failed to add service - already in use?

virpalacios

Active Member
Licensed User
Longtime User
Hi All, i hope everything is going fine and soon we all be out of this situation,

I just start with my Rpi 4, i tried many things, including running my B4J test program (already compiled in .jar) these include program with GUI (I have to use OpenFX in order them to Work). So My Next Step was to install Bridge (for Rpi 4) and after some issues I follows recomendations, I update to bellsoft-jdk13.0.1-linux-arm32-vfp-hflt.tar.gz and
B4J-Bridge v1.44, from this command sudo jdk-13.0.1/bin/java -jar b4j-bridge.jar, I got
B4J-Bridge v1.44
Running on Java 11+
External JavaFX not found. Searching for internal modules...
Waiting for connections (port=6790)...
My IP address is: 192.168.1.133
FTP Server started: ftp://192.168.1.133:6781
Start B4J-Bridge with -disableftp to disable.
JavaFX modules: javafx.base,javafx.controls,javafx.fxml,javafx.graphics,javafx.media,javafx.swing,javafx.web
Connected!

My B4J Bridge connection connect ok and start program
Connected!
Starting program
ProcessCompleted

However in Logs windows I got: * failed to add service - already in use?

I put in code #VirtualMachineArgs: -Djavafx.platform=monocle (Recommended in forum) it don't help, however if I took it out I got a lot of errors.

Thanks in advance for any comments
 

virpalacios

Active Member
Licensed User
Longtime User
Hi Again, I found my program in this directory, however it has a different name, in order it to run I use
sudo /usr/bin/java -jar --module-path /usr/share/openjfx/lib --add-modules javafx.controls AsyncInput2.jar, it works fine

 
Upvote 0

virpalacios

Active Member
Licensed User
Longtime User
Hi All, I have just a comment about this issue, in my development laptop I use Java 8 and my RPi is using OpenJava 11+,

Best Regards
 
Upvote 0

virpalacios

Active Member
Licensed User
Longtime User
Hi All, please if some one has the B4J-Bridge.jar 1.43 for Java 8+, please send me it, I will appreciate a copy for my raspberry p4 testing Bridge to PC.

Thanks in advance
 
Upvote 0

virpalacios

Active Member
Licensed User
Longtime User
Hi Erel, thanks for your answer, I already have Java 8 on the PC, however I could not make b4j-bridge work with my RPi 4 ARM, however it is working very well on a x86 Debian 9 installation with openjdk version "1.8.0_242".

As a comment running b4j-bridge on x86 Debian (which is working) I got

java -jar b4j-bridge.jar
B4J-Bridge v1.44
Waiting for connections (port=6790)...
My IP address is: 100.115.92.195
FTP Server started: ftp://100.115.92.195:6781
Start B4J-Bridge with -disableftp to disable

I didn't see JavaFX modules: javafx.base,javafx.controls,javafx.fxml,javafx.graphics,javafx.media,javafx.swing,javafx.web message
I saw on the RPI

Thanks in advance for your time and comments,

Best Regards
 
Upvote 0

virpalacios

Active Member
Licensed User
Longtime User
Hi Erel, thanks for your replay, it will check with a Non GUI test program to check how it works, maybe this issue is realted to JavaFX Implementations Diferences between ARM (Rpi 4) and x86. (It already run B4J Gui Programs on the RPi 4, no Brigde).

Best Regards
 
Upvote 0

virpalacios

Active Member
Licensed User
Longtime User
Hi Erel and All Members, today I tried b4j-Bridge issue with a diferent laptop it has installed
java version "1.8.0_181"
Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode). I start Bridge and everthing works fine, so the my problem with my first computer has to be related with Java JRE Versions in it, But right now b4j-bridge is working fine in my Rpi 4.

Thanks to Erel for this very impressive piece of software and thanks to share it with us.

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