Java FX:检测到 [iscc.exe] 版本 0,但需要版本 5。由于配置问题,Bundler EXE 安装程序被跳过

S M*_*mar 5 java javafx inno-setup

我构建了一个 Java FX 应用程序,现在尝试转换为执行 file.exe 但尝试构建它以粗体显示以下错误。但是我已经安装了 Inno Setup 6 软件并且还设置了环境路径。但是,错误仍然存​​在。

No base JDK. Package will use system JRE.
No base JDK. Package will use system JRE.
Detected [iscc.exe] version 0 but version 5 is required.
Bundler EXE Installer skipped because of a configuration problem: Can not find Inno Setup Compiler (iscc.exe).  
Advice to fix:   Download Inno Setup 5 or later from http://www.jrsoftware.org and add it to the PATH.
No base JDK. Package will use system JRE.
No base JDK. Package will use system JRE.
Detected [iscc.exe] version 0 but version 5 is required.
Bundler EXE Installer skipped because of a configuration problem: Can not find Inno Setup Compiler (iscc.exe).  
Advice to fix:   Download Inno Setup 5 or later from http://www.jrsoftware.org and add it to the PATH.
Run Code Online (Sandbox Code Playgroud)

生成文件

<target name="-post-jfx-deploy">
    <fx:deploy width="${javafx.run.width}" height="${javafx.run.height}"
               nativeBundles="exe"
               outdir="${basedir}/${dist.dir}" outfile="${application.title}">
        <fx:application name="${application.title}" mainClass="${javafx.main.class}"/>
        <fx:resources>
            <fx:fileset dir="${basedir}/${dist.dir}" includes="*.jar"/>
            <fx:fileset dir="dist" includes="lib/*.jar"/>
        </fx:resources>
        <fx:info title="${application.title}" vendor="${application.vendor}"/>
    </fx:deploy>
</target>  
Run Code Online (Sandbox Code Playgroud)

Mar*_*ryl 4

Inno Setup (\\d+.?\\d*)Java FX在输出中查找模式iscc /?

Inno Setup 5 打印此内容:

Inno Setup 5 命令行编译器

Inno Setup 6 6.0.3之前省略了版本号:

Inno Setup 命令行编译器

这就是为什么你得到

检测到 [iscc.exe] 版本 0,但需要版本 5。


确保您拥有最新版本的 Inno Setup 6,因为此问题已在 6.0.3 中“修复”