无法使用 Izpack 创建安装程序

发布于 2024-11-15 09:26:09 字数 1578 浏览 3 评论 0原文

当我编译 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

毁梦 2024-11-22 09:26:09

install.xml 文件中缺少资源。

D:\trail\simple\install.xml:49: Resource not found: .\Readme.txt 

提供此文件或将其从 install.xml 文件中删除。

There is a missing resource in your install.xml file.

D:\trail\simple\install.xml:49: Resource not found: .\Readme.txt 

Provide this file or remove it from install.xml file.

逆蝶 2024-11-22 09:26:09

我的猜测是,您的 install.xml 包含一个 InfoPanel 引用,如:

  <panels>
    <panel classname="InfoPanel" />
    ...
  </panels>

和一个资源定义,如:

<resources>
  <res id="HTMLInfoPanel.info" src="Readme.txt" />
  ...
</resources>

它实际上引用了丢失的“Readme.txt”文件,该文件将显示在信息面板中。

您应该创建此文件或将其移动到 D:\trail\simple 目录。

MY guess is that that your install.xml contains a InfoPanel reference like:

  <panels>
    <panel classname="InfoPanel" />
    ...
  </panels>

and a resourcedef like:

<resources>
  <res id="HTMLInfoPanel.info" src="Readme.txt" />
  ...
</resources>

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文