2011-06-15 47 views
0

當我編譯我的install.xml文件iam得到一個錯誤,找不到資源。這裏是產生當我編譯無法使用Izpack創建安裝程序

C中的錯誤:\ Program Files文件\的IzPack \ BIN>編譯d:\跟蹤\簡單\ 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) 

回答

0

我的猜測是,你的INSTALL.XML包含一個信息面板參考,如:

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

和resourcedef,如:

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

這實際上是引用丟失的「 Readme.txt「文件,它將顯示在信息面板中。

您應該創建該文件或將其移動到D:\ trail \ simple目錄。

1

install.xml文件中缺少資源。

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

提供此文件或將其從install.xml文件中移除。

相關問題