

You can add these permissions in Xcode directly. Include apple specific permissions to your app. Next you need to have Xcode, so install it if you do not have it on your Mac. We can’t change it, if we want our apps to run on mac or windows (yes, it’s not much different on Windows, I just spent around 100 bucks for a signing certificate for my app there too!). It is one of the down sides of the combat against malware. Yes, distributing apps has become a business model. In order to do this, you need to have an Apple Developer license. The result looks something like this, run.command the command to start the app:īy now you should have an App from Platypus, which you need to sign as next step. jdk-14.0.1/Contents/Home/bin/java -jar B4JPackager11.jar giroscan_conf.jsonįor help the giroscan_conf.json looks like this: Create the java package with B4JPackagerĬopy the B4JPackager11 to your mac and let it run as described in Erel’s description (I used Java 14): For me this was the only way how I could/can distribute my Java-App for the Mac under Catalina.Īll following steps are shown with my application „GiroScan“.ġ. Since macOS Catalina apps need to be signed and notarized in order to distribute them smoothly. Once you have your macOS App you can distribute it.Īs Apple got very severe when it comes to downloading software from the Internet, this process has its own obstacles (e.g. Although it is not a 100% real mac app ( because the program runs in a background shell) it comes very, very close to the real thing. This is a tool that allows scripts (and java packages) to be bundled as an app. The easiest way to do this is via the Platypus tool. At this point it would be nice to put the package in a real bundle as a macOS app. The user doesn’t have a real app he/she can open and run. The backside of this solution is that it is not very mac like. With this tool you can build a package that includes everything and the user only needs to doubl-click a batch file to start your B4J java program on the mac.

So you would be happy to distribute your jar in a package, that includes all the necessary java stuff. A user might or might not have the correct java runtime installed. First of all you don’t want to be dependent on the different java jre installations. When it comes to macOS this can be a tedious process. Once you have written a Java Application with B4J you want to distribute it to the users computers. Distribute Java Application from B4J for the macOS
