I just picked up the new Raspberry Pi 4 (1G) and decided to get back into the B4X environment (was using B4A years ago but haven't done anything with it in a long time). I think I followed Erel's instructions (they are somewhat spread out across several places) and here is what I have done so far:
1. Download the latest Java 11 (bellsoft-jdk11.0.4-linux-arm32-vfp-hflt-lite.tar) onto the RPi.
2. Unpack Java 11 (tar -xvf bellsoft-jdk11.0.4-linux-arm32-vfp-hflt-lite.tar). This creates a directory called jdk-11.0.4-lite.
3. Download and install B4J-Bridge (wget www.b4x.com/b4j/files/b4j-bridge.jar).
4. Run the bridge (sudo jdk-11/bin/java -jar b4j-bridge.jar).
5. Download and install B4J to my PC (Windows 10 Version 1903).
6. Start B4J and set Paths in B4J to C:\java\bin\javac.exe and C:\Program Files (x86)\Anywhere Software\B4J\Libraries.
7. Load MyFirstProgram.
8. Connect B4J-Bridge in B4J to RPi.
9. Start B4J-Bridge on RPi (sudo jdk-11.0.4-lite/bin/java -jar b4j-bridge.jar).
10. RPi responds:
pi@raspberrypi:~ $ sudo jdk-11.0.4-lite/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.0.30
FTP Server started: ftp://192.168.0.30:6781
Start B4J-Bridge with -disableftp to disable.
JavaFX modules:
{after step 9 above}
Connected!
Now, the first thing that I don't see are any modules being loaded on the RPi. And when I compile and run MyFirstProgram in B4J I get the message error:--add modules=requires modules to be specified. And on the RPi I get:
Starting program
ProcessCompleted
So where have I gone astray here? Thanks for the help.
1. Download the latest Java 11 (bellsoft-jdk11.0.4-linux-arm32-vfp-hflt-lite.tar) onto the RPi.
2. Unpack Java 11 (tar -xvf bellsoft-jdk11.0.4-linux-arm32-vfp-hflt-lite.tar). This creates a directory called jdk-11.0.4-lite.
3. Download and install B4J-Bridge (wget www.b4x.com/b4j/files/b4j-bridge.jar).
4. Run the bridge (sudo jdk-11/bin/java -jar b4j-bridge.jar).
5. Download and install B4J to my PC (Windows 10 Version 1903).
6. Start B4J and set Paths in B4J to C:\java\bin\javac.exe and C:\Program Files (x86)\Anywhere Software\B4J\Libraries.
7. Load MyFirstProgram.
8. Connect B4J-Bridge in B4J to RPi.
9. Start B4J-Bridge on RPi (sudo jdk-11.0.4-lite/bin/java -jar b4j-bridge.jar).
10. RPi responds:
pi@raspberrypi:~ $ sudo jdk-11.0.4-lite/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.0.30
FTP Server started: ftp://192.168.0.30:6781
Start B4J-Bridge with -disableftp to disable.
JavaFX modules:
{after step 9 above}
Connected!
Now, the first thing that I don't see are any modules being loaded on the RPi. And when I compile and run MyFirstProgram in B4J I get the message error:--add modules=requires modules to be specified. And on the RPi I get:
Starting program
ProcessCompleted
So where have I gone astray here? Thanks for the help.