2016-05-20 76 views
1

在编译INSTALL.XML的IzPack安装程序,找不到元素的声明“安装

ERROR: 'cvc-elt.1: Cannot find the declaration of element 'installation'.' 
ERROR: 'com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: cvc-elt. 
1: Cannot find the declaration of element 'installation'.' 
-> Fatal error : 
    Error in C:\IzPack\bin\install.xml at line 2, column 29 : javax.xml.transform 
.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeExcep 
tion: cvc-elt.1: Cannot find the declaration of element 'installation'. 

我得到这个错误,我INSTALL.XML是

<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?> 
<installation version="1.0"> 
    <info> 
    <appname>Test</appname> 
    <appversion>1</appversion> 
    </info> 
    <guiprefs width="600" height="480" resizable="no"> 
    </guiprefs> 
    <locale> 
    <langpack iso3="eng"/> 
    </locale> 
    <panels> 
    <panel classname="ShortcutPanel"/> 
    </panels> 
    <packs> 
    <pack name="Test" required="yes"> 
     <description>Description</description> 
    </pack> 
    </packs> 
    <resources> 
    <res src="shortcutSpec.xml" id="shortcutSpec.xml"/> 
    </resources> 
    <native type="izpack" name="ShellLink.dll"/> 
</installation> 

我无法编译install.xml。我究竟做错了什么 ?

我使用的IzPack 5.0.8

回答

4

不清楚的文档,但

移动到:

<izpack:installation version="5.0" 
        xmlns:izpack="http://izpack.org/schema/installation" 
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
        xsi:schemaLocation="http://izpack.org/schema/installation http://izpack.org/schema/5.0/izpack-installation-5.0.xsd"> 

固定对我来说。

+0

发现这个,现在工作正常。不管怎么说,还是要谢谢你 – Shettyh