Ant 构建 NSIS 失败
我试图使用 Eclipse 中的 build.xml 来制作 java 项目的安装程序 exe,但构建失败。
[zip] Building zip: D:\Documents and Settings\Administrator\My Documents\Workspace\JDownloader\dist\JDownloader_windows_13312.zip
[echo] Clean Windows Setup...
[nsis] java.io.IOException: Cannot run program "makensis": CreateProcess error=2, The system cannot find the file specified
这似乎是 build.xml 失败的部分:
<echo message="Clean Windows Setup..." />
<nsis script="${exe.windows.script}" verbosity="2" />
<echo message="Kikin Windows Setup..." /
I'm trying to make the installer exe of a java project using it's build.xml from eclipse but the build fails.
[zip] Building zip: D:\Documents and Settings\Administrator\My Documents\Workspace\JDownloader\dist\JDownloader_windows_13312.zip
[echo] Clean Windows Setup...
[nsis] java.io.IOException: Cannot run program "makensis": CreateProcess error=2, The system cannot find the file specified
This appears to be the section of build.xml that is failing:
<echo message="Clean Windows Setup..." />
<nsis script="${exe.windows.script}" verbosity="2" />
<echo message="Kikin Windows Setup..." /
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
出现该消息
是因为 Ant 无法找到您尝试运行的脚本。
脚本名称(makensis?.nsi?)和位置似乎是在 Ant 属性
exe.windows.script
中设置的。建议您检查是否已设置,设置是否符合您的预期,以及脚本是否存在并且可以在该位置执行。编辑:这类似于 Ant FAQ 中的条目:
The message
arises because Ant is unable to locate the script you are trying to run.
The script name (makensis? .nsi?) and location appear to be set in the Ant property
exe.windows.script
. Suggest you check that is set, set as you expect, and that the script exists and is executable at that location.edit: this is similar to an entry in the Ant FAQ: