Like
@teddybear mentioned, we can execute the run.command inside temp/build folder.
1. Compile your project. You get a
project_name.jar inside \Objects folder.
2. You need to copy the jar to Linux. One of the ways I always use is to copy it is using B4J Bridge.
Note: b4j-bridge.jar can be downloaded from
B4X forum inside Linux using a web browser or wget.
3. On Linux, run command:
java -jar b4j-bridge.jar (e.g I put b4j-bridge.jar in /home/aeric)
4. Get the IPv4 address of the Linux machine from the logs and use B4J IDE to connect to it.
5. From B4J menu B4J Bridge, click
File Explorer. Copy the project_name.jar to the opened Windows.
6. On Linux, you can open
/tempjars to find the jar file (e.g /home/aeric/tempjars). If you use Files (or Linux File Explorer, it will only shows Home)
7. I create a new folder and copy the jar file into this folder. e.g /home/aeric/MCP as show below as
Home / MCP
8. Besides the jar file, we also need to create a
packager.json file with the InputJar value using a text editor.
9. Use Linux terminal, change directory into my MCP folder.
10. Run B4JPackager11.jar with the packager.json file name as an argument with command:
java -jar <path-to-B4JPackager11.jar> packager.json
Note: I have my B4JPackager11.jar located inside home folder (i.e 1-level up from MCP folder)
B4JPackager11.jar can also be copy like the method above from B4J installation.
11. After finished building, we can now run the app by running command:
cd temp/build/
sh run.command