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

jpackager fails to parse file associations

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • internal
    • internal
    • tools

      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

            herrick Andy Herrick (Inactive)
            almatvee Alexander Matveev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: