0

使用 Izpack 5.0.0-beta10 和 compiler.bat 构建了 install.jar

当我尝试使用 java -jar install.jar 运行它时,我得到了

Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: com.izforge.izpack.util.file.FileUtils.close(Ljava/io/Closeable;)V
        at com.izforge.izpack.installer.container.impl.EventFiller.readObject(EventFiller.java:154)
        at com.izforge.izpack.installer.container.impl.EventFiller.loadCustomData(EventFiller.java:62)
        at com.izforge.izpack.installer.container.impl.InstallerContainer.fillContainer(InstallerContainer.java:98)
        at com.izforge.izpack.core.container.AbstractContainer.initBindings(AbstractContainer.java:25)
        at com.izforge.izpack.installer.bootstrap.InstallerGui$1.run(InstallerGui.java:47)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        at java.awt.EventQueue.access$000(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)

这在 Windows 上我将 JAVA_HOME 设置为 Java 7 jdk,从命令提示符键入 java -version 也会给我 Java 7

我可以使用 Izpack 4.3.5 构建和运行相同的 install.xml 没问题。

4

1 回答 1

0

您可能依赖于与安装程序不同的 izpack-util 版本。

无论如何,您运行的是 5.0 的旧版本。我建议从存储库下载最新的快照

于 2012-07-26T13:47:16.497 回答