JPACKAGE(1) JDK Commands JPACKAGE(1) (NAME) jpackage-openjdk21 - OpenJDK 21 (SYNOPSIS) jpackage [] . jpackage (JPACKAGE OPTIONS) . (DESCRIPTION) jpackage . (native) exe dmg macOS . (cross- platform) . . JPACKAGE (JPACKAGE OPTIONS) (Generic Options): @filename . . --type -t type . : {"app-image" "exe" "msi" "rpm" "deb" "pkg" "dmg"} . --app-version version / . --copyright copyright () . --description description . --help -h . --icon path . ( ) --name -n name / . --dest -d destination . ( ). . --temp directory . ( ) . . --vendor vendor (Vendor) . --verbose (verbose). --version . (Runtime Image): --add-modules module-name [,module-name...] (",") . ( ) --add-module jlink . ( --module ) ( --main-jar ) . . --module-path -p module-path [,module-path...] File.pathSeparator . jar . . --jlink-options options jlink . "--strip-native-commands --strip-debug --no-man-pages --no-header-files" . . --runtime-image directory . ( ) --runtime-image jpackage jlink --jlink-options . : --input -i directory . . --app-content additional-content[,additional-content...] / (payload) . . () (Launchers): --add-launcher name=path Properties . ( ) "module" "main-jar" "main-class" "description" "arguments" "java-options" "app- version" "icon" "launcher-as-service" "win-console" "win-shortcut" "win-menu" "linux-app-category" "linux- shortcut" . . . . --arguments arguments . . --java-options options . . --main-class class-name (Qualified name) . --main-jar . --main-jar main-jar JAR ( ). --module --main-jar . --module -m module-name[/main-class] ( ) . (module path) . . --module --main-jar . : ( ): --win-console . macOS ( macOS ): --mac-package-identifier identifier macOS . . - (A-Z, a-z, 0-9) (-) (.) . --mac-package-name name (Menu Bar) . . (Info) . . --mac-package-signing-prefix prefix . --mac-sign . --mac-signing-keychain keychain-name (keychain) . . --mac-signing-key-user-name name (Apple). --mac-app-store jpackage (Mac App Store) . --mac-entitlements path (entitlements) . --mac-app-category category LSApplicationCategoryType plist . "utilities" . : --about-url url (URL) . --app-image directory ( ) ( macOS) . ( ) --file-associations path Properties . ( ) "extension" "mime-type" "icon" "description" (association) . . --install-dir path ( macOS ) "Program Files" "AppData" ( ). --license-file path (). ( ) --resource-dir path jpackage. ( ) jpackage . --runtime-image path . ( ) . --launcher-as-service (service-type) . : ( ): --win-dir-chooser . --win-help-url url (URL) . --win-menu (Start Menu) . --win-menu-group menu-group-name . --win-per-user-install (per-user). --win-shortcut . --win-shortcut-prompt . --win-update-url url (URL) . --win-upgrade-uuid id (UUID) . ( ): --linux-package-name name . . --linux-deb-maintainer email-address (Maintainer) .deb. --linux-menu-group menu-group-name . --linux-package-deps . --linux-rpm-license-type type ("License: value" .spec RPM). --linux-app-release release (Release) .spec RPM (Debian revision) DEB. --linux-app-category category-value (Group) .spec RPM (Section) DEB. --linux-shortcut . macOS ( macOS ): --mac-dmg-content additional-content[,additional-content...] dmg. . (EXAMPLES) : : jpackage -n name -p modulePath -m moduleName/className : jpackage -i inputDir -n name \ --main-class className --main-jar myJar.jar : jpackage -n name --app-image appImageDir : : jpackage --type app-image -n name -p modulePath \ -m moduleName/className : jpackage --type app-image -i inputDir -n name \ --main-class className --main-jar myJar.jar jlink jlink : jlink --output appRuntimeImage -p modulePath \ --add-modules moduleName \ --no-header-files [...] jpackage --type app-image -n name \ -m moduleName/className --runtime-image appRuntimeImage : jpackage -n name --runtime-image ( macOS): jpackage --type app-image --app-image \ --mac-sign [...] : : --verbose JPACKAGE (JPACKAGE RESOURCE DIRECTORY) jpackage . jpackage . : .png JavaApp.png . .desktop xdg-desktop-menu . / . template.desktop . DEB/RPM : -.service (unit file) systemd . unit-template.service . RPM : .spec spec RPM template.spec . DEB : control (Control file) template.control . copyright (Copyright file) template.copyright . preinstall (Pre- install) template.preinstall . prerm (Pre- remove) template.prerm . postinstall (Post- install) template.postinstall . postrm (Post- remove) template.postrm . : .ico JavaApp.ico . .properties Properties WinLauncher.template . MSI/EXE : -post-image.wsf (WSF) main.wxs WiX main.wxs . overrides.wxi WiX overrides.wxi . service-installer.exe . -service-install.wxi WiX . service-install.wxi . -service-config.wxi WiX . service-config.wxi . InstallDirNotEmptyDlg.wxs WiX InstallDirNotEmptyDlg.wxs . ShortcutPromptDlg.wxs WiX ShortcutPromptDlg.wxs . bundle.wxf WiX ui.wxf WiX EXE : WinInstaller.properties Properties WinInstaller.template . -post-msi.wsf (WSF) MSI EXE macOS : .icns JavaApp.icns . Info.plist (property list) Info-lite.plist.template . Runtime-Info.plist Runtime-Info.plist.template . .entitlements (Signing entitlements) sandbox.plist . PKG/DMG macOS : -post-image.sh PKG macOS : uninstaller (Uninstaller) . uninstall.command.template . preinstall preinstall.template . postinstall postinstall.template . services-preinstall . services-preinstall.template . services-postinstall . services-postinstall.template . -background.png background_pkg.png . -background-darkAqua.png background_pkg.png . product-def.plist product-def.plist . -.plist launchd . launchd.plist.template . DMG macOS : -dmg-setup.scpt (AppleScript) DMGsetup.scpt . -license.plist () lic_template.plist . -background.tiff background_dmg.tiff . -volume.icns (Volume) JavaApp.icns . JDK 21 2023 JPACKAGE(1)