无法使用 Izpack 创建安装程序
当我编译 install.xml 文件时,出现资源未找到的错误。 时生成的错误
这是我编译C:\Program Files\IzPack\bin>compile D:\trail\simple\install.xml
.:: IzPack - Version 4.3.4 ::.
< compiler specifications version: 1.0 >
- Copyright (c) 2001-2008 Julien Ponge
- Visit http://izpack.org/ for the latest releases
- Released under the terms of the Apache Software License version 2.0.
-> Processing : D:\trail\simple\install.xml
-> Output : D:\trail\simple\install.jar
-> Base path : .
-> Kind : standard
-> Compression : default
-> Compr. level: -1
-> IzPack home : C:\Program Files\IzPack\bin\..
Adding resource: IzPack.uninstaller
Setting the installer information
Setting the GUI preferences
Adding langpack: eng
Adding resource: flag.eng
Adding langpack: fra
Adding resource: flag.fra
-> Fatal error :
D:\trail\simple\install.xml:49: Resource not found: .\Readme.txt
com.izforge.izpack.compiler.CompilerException: D:\trail\simple\install.xml:49: R
esource not found: .\Readme.txt
at com.izforge.izpack.compiler.CompilerConfig.parseError(Unknown Source)
at com.izforge.izpack.compiler.CompilerConfig.findProjectResource(Unknow
n Source)
at com.izforge.izpack.compiler.CompilerConfig.addResources(Unknown Sourc
e)
at com.izforge.izpack.compiler.CompilerConfig.executeCompiler(Unknown So
urce)
at com.izforge.izpack.compiler.CompilerConfig.main(Unknown Source)
at com.izforge.izpack.compiler.Compiler.main(Unknown Source)
(tip : use -? to get the commmand line parameters)
when i compile my install.xml file iam getting an error that resource not found. here is the error generated when i compile
C:\Program Files\IzPack\bin>compile D:\trail\simple\install.xml
.:: IzPack - Version 4.3.4 ::.
< compiler specifications version: 1.0 >
- Copyright (c) 2001-2008 Julien Ponge
- Visit http://izpack.org/ for the latest releases
- Released under the terms of the Apache Software License version 2.0.
-> Processing : D:\trail\simple\install.xml
-> Output : D:\trail\simple\install.jar
-> Base path : .
-> Kind : standard
-> Compression : default
-> Compr. level: -1
-> IzPack home : C:\Program Files\IzPack\bin\..
Adding resource: IzPack.uninstaller
Setting the installer information
Setting the GUI preferences
Adding langpack: eng
Adding resource: flag.eng
Adding langpack: fra
Adding resource: flag.fra
-> Fatal error :
D:\trail\simple\install.xml:49: Resource not found: .\Readme.txt
com.izforge.izpack.compiler.CompilerException: D:\trail\simple\install.xml:49: R
esource not found: .\Readme.txt
at com.izforge.izpack.compiler.CompilerConfig.parseError(Unknown Source)
at com.izforge.izpack.compiler.CompilerConfig.findProjectResource(Unknow
n Source)
at com.izforge.izpack.compiler.CompilerConfig.addResources(Unknown Sourc
e)
at com.izforge.izpack.compiler.CompilerConfig.executeCompiler(Unknown So
urce)
at com.izforge.izpack.compiler.CompilerConfig.main(Unknown Source)
at com.izforge.izpack.compiler.Compiler.main(Unknown Source)
(tip : use -? to get the commmand line parameters)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
install.xml 文件中缺少资源。
提供此文件或将其从 install.xml 文件中删除。
There is a missing resource in your install.xml file.
Provide this file or remove it from install.xml file.
我的猜测是,您的 install.xml 包含一个 InfoPanel 引用,如:
和一个资源定义,如:
它实际上引用了丢失的“Readme.txt”文件,该文件将显示在信息面板中。
您应该创建此文件或将其移动到 D:\trail\simple 目录。
MY guess is that that your install.xml contains a InfoPanel reference like:
and a resourcedef like:
which actually is referencing the missing "Readme.txt" file which will be shown in the info panel.
You should create this file or move it to the D:\trail\simple directory.