使用 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 没问题。