JPACKAGE(1) JDK Commands JPACKAGE(1) (NAME) jpackage - ( ) (SYNOPSIS) jpackage [] . jpackage . (DESCRIPTION) jpackage . exe dmg macOS . (cross-platform) . . (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 ( ). . --resource-dir path jpackage ( ) jpackage . --temp directory ( ) . . --vendor vendor () --verbose . --version . : --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...] / . . macOS: "Resources" ( "Contents" ). jpackage / (notarization) . () : --add-launcher name=path Properties ( ) "module", "main-jar", "main-class", "description", "arguments", "java-options", "icon", "launcher-as-service", "win-console", "win-shortcut", "win-menu" "linux-shortcut" . . . . --arguments arguments . . : "APPDIR", "BINDIR" "ROOTDIR". ($) - . "${" "}" . . . "APPDIR", "BINDIR" "ROOTDIR" . (\) . --java-options options . --arguments. --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 . . . --mac-package-signing-prefix prefix . --mac-sign . --mac-signing-keychain keychain-name keychain keychain . --mac-signing-key-user-name name --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" . . --install-dir path ( macOS ) "Program Files" "AppData" ( ) --license-file path () ( ) --runtime-image path ( ) . --launcher-as-service . : ( ): --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 .deb --linux-menu-group menu-group-name --linux-package-deps package-dep-string --linux-rpm-license-type type ( "License: value" .spec RPM) --linux-app-release release .spec RPM 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 [< jlink>...] 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 JLINK jpackage jlink --runtime-image . MS JDK . MS / . JPACKAGE jpackage . jpackage . : .png JavaApp.png .desktop xdg-desktop-menu / template.desktop DEB/RPM : -.service systemd unit-template.service RPM : .spec spec RPM template.spec DEB : control (control) template.control copyright (copyright) 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 os-condition.wxf WiX os-condition.wxf wix-conv.xsl WiX. WiX WiX wix3-to-wix4-conv.xsl EXE : WinInstaller.properties Properties WinInstaller.template -post-msi.wsf (WSF) MSI EXE installer.exe (wrapper) MSI msiwrapper.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 26.0.2.1 2026 JPACKAGE(1)