B4x rant thread

About the B4J Mac packages, I’ve just created one as an example.
https://www.b4x.com/b4j/files/MacAngryBirdsExample.zip (35mb)

You can run it by unzipping the package and clicking on run.command. As I previously wrote there is place for improvement here and this is not the case with Windows packages (which are simpler to create and include an executable).

Creating it is done with:

  • Run the project locally (on Windows) to generate the compiled jar. It will be in the Objects folder. Copy it to the Mac.
  • Connect with B4J-Bridge to the mac. You need to run B4J-Bridge with Java 11+ downloaded from the link I posted above:
jdk-14.0.1/Contents/Home/bin/java -jar b4j-bridge.jar 

Open B4J-Packager11 in the IDE and set the InputJar parameter. In most cases you don’t need the json file.

Private InputJar As String = "/users/username/Downloads/AngryBirds.jar"

Run it and the package will be created on the Mac. You need to distribute all the files under the build folder.

1 Like