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
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
- relates to
-
JDK-8200758 JEP 343: Packaging Tool (Incubator)
- Closed