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

jpackager fails to parse file associations

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: internal
    • Fix Version/s: internal
    • Component/s: tools
    • Labels:

      Description

      When I try to create installer on Windows with file associations, jpackager will fail with error below.

      jpackager create-installer --verbose --input E:\Temp\output\jar --output output --name Test9 --vendor Alexander --description JavaApplication1 --main-jar JavaApplication1.jar --class javaapplication1.JavaApplication1 --files JavaApplication1.jar --jvm-args -Djnlp.TestName=Test9 --file-associations E:\Temp\output\prop\fileAssociation0.properties

      Bundler MSI Installer skipped because of a configuration problem: java.lang.IllegalArgumentException: Param file-associations
       should be of type interface java.util.List but is a class java.util.HashMap

      fileAssociation0.properties contains:
      extension=test1
      mime-type=application-x/test1
      description="Test Extension 1"
      icon=E:\Temp\output\icon\Test1.ico

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                herrick Andy Herrick
                Reporter:
                almatvee Alexander Matveev
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: