我刚刚升级到izPack的v 5.0.0-beta11。
我已更新配置,因此编译器可以正常工作。
但是,输出jar文件会引发以下错误....
无法找到或加载主类 com.izforge.izpack.installer.bootstrap.Installer
有关我可能错过的任何建议吗?
<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
<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">
<info>
<appname>appname (2013-09-03)</appname>
<appversion>20130903_1115</appversion>
<url>http://google.com</url>
<authors>
<author name="steven" email="sbirdranch@yahoo.com"/>
</authors>
<uninstaller write="no"/>
</info>
<run-privileged condition="izpack.windowsinstall.vista|izpack.windowsinstall.7"/>
<guiprefs width="700" height="550" resizable="no">
<modifier key="useButtonIcons" value="no"/>
<modifier key="useLabelIcons" value="no"/>
<modifier key="labelGap" value="2"/>
<modifier key="layoutAnchor" value="NORTHWEST"/>
<modifier key="useHeadingPanel" value="yes"/>
<modifier key="headingImageOnLeft" value="no"/>
<modifier key="headingLineCount" value="1"/>
<modifier key="headingFontSize" value="1.5"/>
<modifier key="headingBackgroundColor" value="0x00ffffff"/>
</guiprefs>
<locale>
<langpack iso3="eng"/>
</locale>
<resources>
<res id="HTMLLicencePanel.licence" src="./packager/pack_license.htm"/>
<res id="HTMLHelloPanel.hello" src="./packager/pack_welcome.htm"/>
<res id="Installer.image" src="./packager/pb_wizSplash.png"/>
<res id="Heading.image" src="./packager/tdkc_gradient.png"/>
<res id="userInputSpec.xml" src="./packager/userInputSpec.xml"/>
<res id="TargetPanel.dir" src="./packager/installDir.txt"/>
</resources>
<variables>
<variable name="ShowCreateDirectoryMessage" value="false"/>
</variables>
<conditions>
<condition type="variable" id="checkBox">
<name>ackVar</name>
<value>on</value>
</condition>
<condition type="or" id="isCheckedCondition">
<condition type="ref" refid="checkBox"/>
</condition>
</conditions>
<panels>
<panel classname="HTMLHelloPanel" id="helloPanel"/>
<panel classname="HTMLLicencePanel" id="licPanel"/>
<panel classname="UserInputPanel" id="ackSBIRPanel">
</panel>
<panel classname="TargetPanel" id="targetPanel"/>
<panel classname="InstallPanel" id="installPanel"/>
</panels>
<packs>
<pack name="UDK Core" required="yes">
<description>Core files </description>
<file src="c:\BUILD_AREA\Build_Tester/tempZip/Build_Tester_20130903_1115_X-win32.win32.x86_64/Build_Tester_Archive_Prefix" targetdir="$INSTALL_PATH"/>
</pack>
</packs>
</installation>
答案 0 :(得分:1)
无法找到或加载主类 com.izforge.izpack.installer.bootstrap.Installer
我首先检查build.xml,看看 izpack-installer-5.0.0-beta11.jar 是否包含在类路径中。
<project default="install">
<path id="build.classpath">
<fileset dir="${DEFAULT_IZPACK_HOME}">
<include name="lib/*.jar" />
</fileset>
</path>