javapackager -deploy -verbose -srcdir jars -srcfiles com.greetings.jar -BmainJar=com.greetings.jar -Bclasspath=com.greetings.jar -native dmg -outdir outdir -outfile test -BapplicationCategory=SomeCategory -name CategoryTestJDK8 -appclass com.greetings.App1 No base JDK. Package will use system JRE. No base JDK. Package will use system JRE. Building DMG package for CategoryTestJDK8 Preparing Info.plist: /var/folders/sx/mb704jwn5b36y_pjsg1vfqjm001wjw/T/fxbundler8689814986846021713/macosx/Info.plist Using default package resource [Bundle config file] (add package/macosx/Info.plist to the class path to customize) Using default package resource [icon] (add package/macosx/CategoryTestJDK8.icns to the class path to customize) Running [security, find-certificate, -c, Developer ID Application: , -a] Did not find a key matching 'Developer ID Application: ' Config files are saved to /var/folders/sx/mb704jwn5b36y_pjsg1vfqjm001wjw/T/fxbundler8689814986846021713/macosx. Use them to customize package. Using default package resource [dmg background] (add package/macosx/CategoryTestJDK8-background.png to the class path to customize) Using default package resource [volume icon] (add package/macosx/CategoryTestJDK8-volume.icns to the class path to customize) Using default package resource [script to run after application image is populated] (add package/macosx/CategoryTestJDK8-post-image.sh to the class path to customize) Preparing dmg setup: /var/folders/sx/mb704jwn5b36y_pjsg1vfqjm001wjw/T/fxbundler8689814986846021713/macosx/CategoryTestJDK8-dmg-setup.scpt Using default package resource [DMG setup script] (add package/macosx/CategoryTestJDK8-dmg-setup.scpt to the class path to customize) Creating DMG file: /export/home/gtee/ramesh/outdir/bundles/CategoryTestJDK8-1.0.dmg Running [/usr/bin/hdiutil, create, -quiet, -srcfolder, /var/folders/sx/mb704jwn5b36y_pjsg1vfqjm001wjw/T/fxbundler8689814986846021713/images/image-8899321299930263119, -volname, CategoryTestJDK8, -ov, /var/folders/sx/mb704jwn5b36y_pjsg1vfqjm001wjw/T/fxbundler8689814986846021713/images/CategoryTestJDK8-tmp.dmg, -format, UDRW] Running [/usr/bin/hdiutil, attach, /var/folders/sx/mb704jwn5b36y_pjsg1vfqjm001wjw/T/fxbundler8689814986846021713/images/CategoryTestJDK8-tmp.dmg, -quiet, -mountroot, /var/folders/sx/mb704jwn5b36y_pjsg1vfqjm001wjw/T/fxbundler8689814986846021713/images] Running [osascript, /var/folders/sx/mb704jwn5b36y_pjsg1vfqjm001wjw/T/fxbundler8689814986846021713/macosx/CategoryTestJDK8-dmg-setup.scpt] Running [/usr/bin/SetFile, -c, icnC, /var/folders/sx/mb704jwn5b36y_pjsg1vfqjm001wjw/T/fxbundler8689814986846021713/images/CategoryTestJDK8/.VolumeIcon.icns] Running [/usr/bin/SetFile, -a, C, /var/folders/sx/mb704jwn5b36y_pjsg1vfqjm001wjw/T/fxbundler8689814986846021713/images/CategoryTestJDK8] Running [/usr/bin/hdiutil, detach, -quiet, /var/folders/sx/mb704jwn5b36y_pjsg1vfqjm001wjw/T/fxbundler8689814986846021713/images/CategoryTestJDK8] Running [/usr/bin/hdiutil, convert, /var/folders/sx/mb704jwn5b36y_pjsg1vfqjm001wjw/T/fxbundler8689814986846021713/images/CategoryTestJDK8-tmp.dmg, -quiet, -format, UDZO, -o, /export/home/gtee/ramesh/outdir/bundles/CategoryTestJDK8-1.0.dmg] Result DMG installer for CategoryTestJDK8: /export/home/gtee/ramesh/outdir/bundles/CategoryTestJDK8-1.0.dmg Config files are saved to /var/folders/sx/mb704jwn5b36y_pjsg1vfqjm001wjw/T/fxbundler8689814986846021713/macosx. Use them to customize package.