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

javapackager throws NPE for invalid value for "-srcdir" argument

    XMLWordPrintable

    Details

      Description

      The following command causes an NPE.

      C:\java\spreader>c:\jdk8\bin\javafxpackager -deploy -v -name Spreader -description "auto spreader" -native exe -vendor "ABC Inc" -appclass spreader.Spreader -srcdir c:/java/spreader/lib/spreader.jar -outdir deploy -outfile
      spreader
      Exception in thread "main" com.sun.javafx.tools.packager.PackagerException: Error: deploy failed
              at com.sun.javafx.tools.packager.PackagerLib.generateDeploymentPackages(PackagerLib.java:498)
              at com.sun.javafx.tools.packager.Main.main(Main.java:428)
      Caused by: java.lang.NullPointerException
              at com.sun.javafx.tools.packager.PackagerLib.copyFileToOutDir(PackagerLib.java:1326)
              at com.sun.javafx.tools.packager.PackagerLib.copyFiles(PackagerLib.java:544)
              at com.sun.javafx.tools.packager.PackagerLib.generateDeploymentPackages(PackagerLib.java:495)
              ... 1 more

        Attachments

          Activity

            People

            Assignee:
            dcherepanov Dmitry Cherepanov
            Reporter:
            duke J. Duke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: