2012-07-24 28 views
0

內置使用的IzPack 5.0.0-beta10和compiler.bat運行所install.jar從的IzPack crreated沒有給我這樣的方法例外

當我嘗試和運行它使用Java的install.jar -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 JDK 7,和打字Java的版本從命令提示符也使我的Java 7

我可以建立並運行的IzPack相同INSTALL.XML 4.3.5沒問題。

回答

0

您可能依賴於安裝程序的不同版本的izpack-util。

無論如何,你運行的是5.0的舊版本。我建議從repository

+0

您下載最新的快照也許到的東西用的IzPack-util的,但我沒有看到它,因爲我沒有我的路徑上的任何的IzPack的東西,我建立並從同一位置 – 2012-07-27 08:12:17

+0

嗯運行,只是一個月後再試一次,它沒有問題,但不知道有什麼變化。 – 2012-09-20 16:21:36

+0

Oopps,不,它不工作我正在使用用izpack 4.3.5創建的舊的install.jar,Ixpack 5沒有把install.jar放在與install.xml相同的地方,這有點令人困惑。 – 2012-09-21 13:35:33

相關問題