IzPack 安装程序,找不到元素“安装”的声明
IzPack installer, Cannot find the declaration of element 'installation
我在编译 install.xml
时遇到这个错误
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
文档中不清楚,但是
移动到:
<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">
帮我修好了。
我在编译 install.xml
时遇到这个错误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
文档中不清楚,但是
移动到:
<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">
帮我修好了。