Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8189652

javapackager fails on Mac OS 10.13

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      x86
    • OS:
      os_x

      Description

      FULL PRODUCT VERSION :
      java version "1.8.0_151"
      Java(TM) SE Runtime Environment (build 1.8.0_151-b12)
      Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Mac OS 10.13
      17.0.0 Darwin Kernel Version 17.0.0: Thu Aug 24 21:48:19 PDT 2017; root:xnu-4570.1.46~2/RELEASE_X86_64 x86_64

      A DESCRIPTION OF THE PROBLEM :
      Packaging JavaFX native gives

      ERROR: File Not Found. (-43) on file: /var/folders/_x/bjbbfjb15917fvwm06zytrs40000gn/T/fxbundler8218006848095561556/images/APP_NAME_HERE/.VolumeIcon.icns
      java.io.IOException: Exec failed with code 2 command [[/usr/bin/SetFile, -c, icnC, /var/folders/_x/bjbbfjb15917fvwm06zytrs40000gn/T/fxbundler8218006848095561556/images/APP_NAME_HERE/.VolumeIcon.icns] in unspecified directory


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      curl --remote-name http://centerkey.com/mac/java/ShowTime.java
      javac ShowTime.java
      echo "Main-Class: ShowTime" > MainClass.txt
      jar cmf MainClass.txt ShowTime.jar *.class
      jdk=$(/usr/libexec/java_home)
      $jdk/bin/javapackager -deploy -native dmg -name ShowTime \
         -srcdir . -srcfiles ShowTime.jar -appclass ShowTime \
         -outdir deploy -outfile ShowTime -v

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      A fully packaged DMG package
      ACTUAL -
      Failed build

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      /var/folders/_x/bjbbfjb15917fvwm06zytrs40000gn/T/fxbundler5185083527760861176/images/image-3981030682968931624/ShowTime.app: signed app bundle with Mach-O thin (x86_64) [ShowTime]
        Config files are saved to /var/folders/_x/bjbbfjb15917fvwm06zytrs40000gn/T/fxbundler5185083527760861176/macosx. Use them to customize package.
        Using default package resource [dmg background] (add package/macosx/ShowTime-background.png to the class path to customize)
        Using default package resource [volume icon] (add package/macosx/ShowTime-volume.icns to the class path to customize)
      Using default package resource [script to run after application image is populated] (add package/macosx/ShowTime-post-image.sh to the class path to customize)
      Preparing dmg setup: /var/folders/_x/bjbbfjb15917fvwm06zytrs40000gn/T/fxbundler5185083527760861176/macosx/ShowTime-dmg-setup.scpt
        Using default package resource [DMG setup script] (add package/macosx/ShowTime-dmg-setup.scpt to the class path to customize)
       Creating DMG file: /Users/brownd/Desktop/deploy/bundles/ShowTime-1.0.dmg
      Running [/usr/bin/hdiutil, create, -quiet, -srcfolder, /var/folders/_x/bjbbfjb15917fvwm06zytrs40000gn/T/fxbundler5185083527760861176/images/image-3981030682968931624, -volname, ShowTime, -ov, /var/folders/_x/bjbbfjb15917fvwm06zytrs40000gn/T/fxbundler5185083527760861176/images/ShowTime-tmp.dmg, -format, UDRW]
      Running [/usr/bin/hdiutil, attach, /var/folders/_x/bjbbfjb15917fvwm06zytrs40000gn/T/fxbundler5185083527760861176/images/ShowTime-tmp.dmg, -quiet, -mountroot, /var/folders/_x/bjbbfjb15917fvwm06zytrs40000gn/T/fxbundler5185083527760861176/images]
      Running [osascript, /var/folders/_x/bjbbfjb15917fvwm06zytrs40000gn/T/fxbundler5185083527760861176/macosx/ShowTime-dmg-setup.scpt]
      Running [/usr/bin/SetFile, -c, icnC, /var/folders/_x/bjbbfjb15917fvwm06zytrs40000gn/T/fxbundler5185083527760861176/images/ShowTime/.VolumeIcon.icns]
      ERROR: File Not Found. (-43) on file: /var/folders/_x/bjbbfjb15917fvwm06zytrs40000gn/T/fxbundler5185083527760861176/images/ShowTime/.VolumeIcon.icns
      java.io.IOException: Exec failed with code 2 command [[/usr/bin/SetFile, -c, icnC, /var/folders/_x/bjbbfjb15917fvwm06zytrs40000gn/T/fxbundler5185083527760861176/images/ShowTime/.VolumeIcon.icns] in unspecified directory
      at com.oracle.tools.packager.IOUtils.exec(IOUtils.java:165)
      at com.oracle.tools.packager.IOUtils.exec(IOUtils.java:138)
      at com.oracle.tools.packager.IOUtils.exec(IOUtils.java:132)
      at com.oracle.tools.packager.mac.MacDmgBundler.buildDMG(MacDmgBundler.java:391)
      at com.oracle.tools.packager.mac.MacDmgBundler.bundle(MacDmgBundler.java:92)
      at com.oracle.tools.packager.mac.MacDmgBundler.execute(MacDmgBundler.java:549)
      at com.sun.javafx.tools.packager.PackagerLib.generateNativeBundles(PackagerLib.java:352)
      at com.sun.javafx.tools.packager.PackagerLib.generateDeploymentPackages(PackagerLib.java:319)
      at com.sun.javafx.tools.packager.Main.main(Main.java:476)
        Config files are saved to /var/folders/_x/bjbbfjb15917fvwm06zytrs40000gn/T/fxbundler5185083527760861176/macosx. Use them to customize package.
      Exception in thread "main" com.sun.javafx.tools.packager.PackagerException: Error: Bundler "DMG Installer" (dmg) failed to produce a bundle.
      at com.sun.javafx.tools.packager.PackagerLib.generateNativeBundles(PackagerLib.java:354)
      at com.sun.javafx.tools.packager.PackagerLib.generateDeploymentPackages(PackagerLib.java:319)
      at com.sun.javafx.tools.packager.Main.main(Main.java:476)

      REPRODUCIBILITY :
      This bug can be reproduced always.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vdrozdov Victor Drozdov (Inactive)
                Reporter:
                webbuggrp Webbug Group
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: