As promised in this the B4J Training Video about the Bridge, I am attaching the scripts for running the Bridge from Mac or Raspberry Pi (Linux):
Mac:
1) Create a file called bridge.sh
2) Insert the following code into the script and then set it to run via Terminal
3) Simply double-click the script BEFORE you bring up your virtual Windows environment and note the IP
Raspberry Pi (Linux):
1) Create a file called bridge.sh
2) Insert the following code into the script and then set it to run via LX Terminal
3) Double-click the script and then 'Execute in Terminal'.
4) Note the IP to compare to the B4J IDE connection
A couple of quick notes which may alleviate some potential frustration:
* If you want to run a UI app on the Raspberry Pi, you should have JDK 8u6 (NO HIGHER supports JavaFX) AND the RPi needs to be connected to a "hard" display, NOT VNC.
* When compiling a web server app, you have to manually copy the WWW folder to the target machine because the static files are within the folder.
Please, let me know if anything isn't clear ....
Mac:
1) Create a file called bridge.sh
2) Insert the following code into the script and then set it to run via Terminal
B4X:
cd /
cd ~/Documents/development/b4j
java -jar b4j-bridge.jar
Raspberry Pi (Linux):
1) Create a file called bridge.sh
2) Insert the following code into the script and then set it to run via LX Terminal
B4X:
#/bin/bash
cd ..
cd /home/pi/Downloads
sudo java -jar b4j-bridge.jar
4) Note the IP to compare to the B4J IDE connection
A couple of quick notes which may alleviate some potential frustration:
* If you want to run a UI app on the Raspberry Pi, you should have JDK 8u6 (NO HIGHER supports JavaFX) AND the RPi needs to be connected to a "hard" display, NOT VNC.
* When compiling a web server app, you have to manually copy the WWW folder to the target machine because the static files are within the folder.
Please, let me know if anything isn't clear
Last edited: