Skip to Main Content

Java SE (Java Platform, Standard Edition)


For appeals, questions and feedback, please email

Problems using jpackage

user-ftvuoOct 12 2023 — edited Oct 13 2023
  • Mac Mini M1
  • macOS 13.6 Ventura
  • Java 21 - jdk-21.jdk + Maven
  • IntelliJ IDEA Ultimate

I'd like to use jpackage to produce a macOS .app and, later, maybe a .dmg file for distribution and installation. Am I right in thinking that I first need to roll up my app's class files into a combined .jar file and then combine that with the Java run-time to make a fully self-contained app?

UPDATE: I've managed to use the maven-shade-plugin to produce an “über” .jar file with all of the dependencies. In order to use jpackage, do I first have to incorporate the Java run-time into the .jar file, or will jpackage take care of that for me?

Post Details
Added on Oct 12 2023
1 comment