I've just created a java application and created an image with moditect-jlink including the JRE. But now I'm wondering how to bundle it up to an .app file for OSX. Has anyone tried it yet? It seems like jpackage is changing continuously and tutorials are gettin outdated pretty fast.
Asked
Active
Viewed 1,664 times
2
-
“It seems like jpackage is changing continuously and tutorials are gettin outdated pretty fast.” Yes, relying on beta software is generally has that problem. Your best bet is to wait until Java 14 is officially released in March. At that time, its capabilities will be stable. – VGR Jan 17 '20 at 23:38
-
(Update: I just saw that jpackage will have incubator status in Java 14, so even in March it may not be completely stable. Personally I’d wait until it’s out of incubator status.) – VGR Jan 18 '20 at 01:27
-
Hi, I have tried to successfully build a DMG file for my application using jpackage together with a pre-built blink-created runtime. I still have a problem with file-associations on macOS though (i. e. to register my app for a file type), and I haven't tried to sign the app yet. jpackage still has some rough edges, but it works. It has also been more or less stable in the last couple of EA builds. If you have a more concrete question, just post it. – Axel Feb 15 '20 at 20:05
1 Answers
1
Here's an article how to build an app image using OpenJDK 11 and using OpenJDK 14 with jpackage only for building the installer / package: https://walczak.it/blog/distributing-javafx-desktop-applications-without-requiring-jvm-using-jlink-and-jpackage
It describes the steps we did to build installers for: http://pdf-decorator.walczak.it/

Adam from WALCZAK.IT
- 1,339
- 12
- 11