[英]How to setup Inno Setup plugin in NetBeans
I tried to create exe file of my code, in JavaFX, using NetBeans.我尝试使用 NetBeans 在 JavaFX 中创建我的代码的 exe 文件。 I installed Inno Setup on my system, but still it gives error:
我在系统上安装了 Inno Setup,但仍然出现错误:
Execute failed: java.io.IOException: Cannot run program "iscc" (in directory "D:\\Ami\\DhruwCreation\\Album\\June2016\\01-June-2016-Integrated\\DisplayImageAndUpload"): CreateProcess error=2, The system cannot find the file specified
执行失败:java.io.IOException:无法运行程序“iscc”(在目录“D:\\Ami\\DhruwCreation\\Album\\June2016\\01-June-2016-Integrated\\DisplayImageAndUpload”中):CreateProcess error=2,系统不能找到指定的文件
D:\\Ami\\DhruwCreation\\Album\\June2016\\01-June-2016-Integrated\\DisplayImageAndUpload\\nbproject\\build-native.xml:441: Error:
D:\\Ami\\DhruwCreation\\Album\\June2016\\01-June-2016-Integrated\\DisplayImageAndUpload\\nbproject\\build-native.xml:441:错误:
JavaFX native packager requires external Inno Setup 5+ tools installed and included on PATH to create EXE installer.
JavaFX 本地打包程序需要安装并包含在 PATH 中的外部 Inno Setup 5+ 工具来创建 EXE 安装程序。 See http://www.jrsoftware.org/
见http://www.jrsoftware.org/
BUILD FAILED (total time: 0 seconds)
构建失败(总时间:0 秒)
When I click on the error message it goes to build-native.xml
file and highlights the following line:当我单击错误消息时,它会转到
build-native.xml
文件并突出显示以下行:
<fail message="Error:${line.separator}${missing.Inno.message}" if="missing.Inno"/>
As the error message suggests, you have to add a path to the iscc
to PATH
environment variable.正如错误消息所暗示的那样,您必须将
iscc
的路径添加到PATH
环境变量。
In Windows Control Panel, go to System and Security > System > Advanced system settings and click Environment Variables button.在 Windows 控制面板中,转到系统和安全 > 系统 > 高级系统设置,然后单击环境变量按钮。 Locate the
Path
variable, click Edit and add a path to the folder where the Inno Setup is installed.找到
Path
变量,单击Edit并添加到安装 Inno Setup 的文件夹的路径。 Ie typically the C:\\Program Files (x86)\\Inno Setup 5
.即通常是
C:\\Program Files (x86)\\Inno Setup 5
。
You have to restart your IDE after setting the PATH
(or even better your machine).您必须在设置
PATH
(甚至更好的机器)后重新启动您的 IDE。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.