Hello,
I'm trying to use B4J-Bridge to test a program on my Mac.
I'm running macOS Tahoe (26.2).
I installed openJDK 25 using Homebrew (brew install openjdk)
When I run java --version, this is what I get:
When I run the B4J-Bridge, this is what I get:
If I try and connect from the IDE using that IP address, I get a dialog that states:
If I answer "Yes", the status at the bottom of the IDE window is:
If I use my Mac's IP address for the Wi-Fi from system settings (192.168.0.190), I get:
...and the Terminal session on my Mac shows "Connected!"
However, when I try to run the project (which is just the math quiz project from the B4X Getting Started pdf), the app doesn't appear on my Mac and this is what is show in the Terminal where B4J-Bridge is running:
I'm wondering if this is related to that message:
In fact, as I'm typing this out, I did an DuckDuckGo search for "homebrew javafx" and found the followiing:
I feel like that the focus of B4X these days is more towards mobile development for iPhones and Androids, however, I currently want to figure out how to make and package some desktop apps for macOS and Linux. To that end, I wish there existed a current, concise guide to the best practices for building, compiling, and packaging B4J apps for macOS and Linux. It seems like there's multiple forum posts that have to be read and interpreted before figuring out how deploy B4J apps on macOS and/or Linux.
I'm trying to use B4J-Bridge to test a program on my Mac.
I'm running macOS Tahoe (26.2).
I installed openJDK 25 using Homebrew (brew install openjdk)
When I run java --version, this is what I get:
russ@Russells-MacBook-Air Downloads % java --version
openjdk 25.0.1 2025-10-21
OpenJDK Runtime Environment Homebrew (build 25.0.1)
OpenJDK 64-Bit Server VM Homebrew (build 25.0.1, mixed mode, sharing)
When I run the B4J-Bridge, this is what I get:
russ@Russells-MacBook-Air Downloads % java -jar b4j-bridge.jar
B4J-Bridge v1.61
Running on Java 11+
/opt/homebrew/Cellar/openjdk/25.0.1/libexec
External JavaFX not found. Searching for internal modules...
Waiting for connections (port=6790)...
My IP address is: 10.37.129.2
FTP Server started: ftp://10.37.129.2:6781
Start B4J-Bridge with -disableftp to disable.
JavaFX modules:
If I try and connect from the IDE using that IP address, I get a dialog that states:
Ping failed (IP = 10.37.129.2):
The IP address is most probably incorrect.
Do you want to use it?
If I answer "Yes", the status at the bottom of the IDE window is:
B4J-Bridge: Trying to connect...
If I use my Mac's IP address for the Wi-Fi from system settings (192.168.0.190), I get:
B4J-Bridge (Unknown): Connected
...and the Terminal session on my Mac shows "Connected!"
However, when I try to run the project (which is just the math quiz project from the B4X Getting Started pdf), the app doesn't appear on my Mac and this is what is show in the Terminal where B4J-Bridge is running:
russ@Russells-MacBook-Air Downloads % java -jar b4j-bridge.jar
B4J-Bridge v1.61
Running on Java 11+
/opt/homebrew/Cellar/openjdk/25.0.1/libexec
External JavaFX not found. Searching for internal modules...
Waiting for connections (port=6790)...
My IP address is: 10.37.129.2
FTP Server started: ftp://10.37.129.2:6781
Start B4J-Bridge with -disableftp to disable.
JavaFX modules:
Connected!
Starting program
ProcessCompleted
I'm wondering if this is related to that message:
External JavaFX not found. Searching for internal modules...
In fact, as I'm typing this out, I did an DuckDuckGo search for "homebrew javafx" and found the followiing:
I feel like that the focus of B4X these days is more towards mobile development for iPhones and Androids, however, I currently want to figure out how to make and package some desktop apps for macOS and Linux. To that end, I wish there existed a current, concise guide to the best practices for building, compiling, and packaging B4J apps for macOS and Linux. It seems like there's multiple forum posts that have to be read and interpreted before figuring out how deploy B4J apps on macOS and/or Linux.