Troubleshooting Issue with jpackage
Tool in JDK14 Early Access Build
I am using the beta jpackage tool (JEP 343) that comes with the JDK14 early access build.
I have run the following .bat script in Windows:
"%JAVA_HOME%/bin/jpackage" ^
--name NAME ^
--dest store/ ^
--input store/package/ ^
--main-jar MAIN_JAR.jar ^
--main-class library.MAIN_CLASS^
When running the script, I receive the following error:
WARNING: Using incubator modules: jdk.incubator.jpackage
Can not find WiX tools (light.exe, candle.exe) Download WiX 3.0 or later from https://wixtoolset.org and add it to the PATH. Error: Invalid or unsupported type: [null]
I have downloaded WiX311.exe and tried putting it in the same folder as the jpackage.exe
and in the same folder as the MAIN_JAR.jar
but neither has solved this issue.
My question is: what is “the PATH” that I need to add WiX 3.0 or later to in order to get this to package?