Filling the Packager gap - again

Kustaa Nyholm kustaa.nyholm at sparetimelabs.com
Sun Jan 13 12:44:49 UTC 2019


Hi,

I've been struggling with packaging my app on MacOs High Sierra (10.13.6) with OpenJDK 11.0.1


Literally I've put days into this.

Won't bore you will all the details (unless you want) but my latest attempt is based on this 
and hence I'm addressing this list:

https://mail.openjdk.java.net/pipermail/openjfx-dev/2018-September/022500.html

Specifically I downloaded 

http://download2.gluonhq.com/jpackager/11/jdk.packager-osx.zip

and copied:

jpackager -> /Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home/bin
jdk.packager.jar -> /Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home/bin


I also have (copied from jdk1.8.0_102):

/Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home/lib/ant-javafx.jar

The build works in that it produces a working .dmg and .app with correct icons and all '
(in /private/var/folders/p_/pl6_ggsn1l91rhjklbxk__rcs_tcs9/T/fxbundler7020007958604602553/images/EazyCNC-tmp.dmg etc) 
but the build ends with an unspecified failure (unless it is related to the 'already an item with that name.'):

Building DMG package for EazyCNC
  Using custom package resource [Bundle config file]  (loaded from package/macosx/Info.plist)
  Using custom package resource [icon]  (loaded from package/macosx/EazyCNC.icns)
Did not find a key matching 'Developer ID Application: '
  Config files are saved to /var/folders/p_/pl6_ggsn1l91rhjklbxk__rcs_tcs9/T/fxbundler18114117913034428425/macosx. Use them to customize package.
  Using custom package resource [dmg background]  (loaded from package/macosx/EazyCNC-background.png)
  Using custom package resource [volume icon]  (loaded from package/macosx/EazyCNC-volume.icns)
Using default package resource [script to run after application image is populated]  (add package/macosx/EazyCNC-post-image.sh to the class path to customize)
  Using custom package resource [DMG setup script]  (loaded from package/macosx/EazyCNC-dmg-setup.scpt)
/var/folders/p_/pl6_ggsn1l91rhjklbxk__rcs_tcs9/T/fxbundler18114117913034428425/macosx/EazyCNC-dmg-setup.scpt:631:738: execution error: Finder got an error: The operation can’t be completed because there is already an item with that name. (-48)
  Config files are saved to /var/folders/p_/pl6_ggsn1l91rhjklbxk__rcs_tcs9/T/fxbundler18114117913034428425/macosx. Use them to customize package.

BUILD FAILED
/Users/nyholku/EazyCNC-Project/build.xml:305: Error: Bundler "DMG Installer" (dmg) failed to produce a bundle.

Total time: 6 seconds

Any suggestions to how to dig this further or anything would be highly appreciated.

I'm pretty sure I've tried all the workarounds and suggestions that google can find.


wbr Kusti









More information about the openjfx-dev mailing list