2
我們使用Install4J
版本來創建安裝程序。在安裝過程中,install4j會在解包期間拋出下面的異常。因此,捆綁的jar
文件被部分提取(大小和cheksum都不匹配),並且應用程序無法正常工作。Install4J版本解包失敗
如何調試此問題?
我開始與標誌
-Dinstall4j.debug=true -Dinstall4j.logToStderr=true
安裝,但它沒有給出太多信息,我們使用Java 8和Ubuntu
java.io.IOException: null ref
at com.sun.java.util.jar.pack.NativeUnpack.getNextFile(Native Method)
at com.sun.java.util.jar.pack.NativeUnpack.run(NativeUnpack.java:215)
at com.sun.java.util.jar.pack.NativeUnpack.run(NativeUnpack.java:247)
at com.sun.java.util.jar.pack.UnpackerImpl.unpack(UnpackerImpl.java:138)
at com.sun.java.util.jar.pack.UnpackerImpl.unpack(UnpackerImpl.java:174)
at com.install4j.runtime.installer.helper.Unpacker.unpack(Unpacker.java:55)
at com.install4j.runtime.installer.InstallerContextImpl.unpackAdditionalUserFiles(InstallerContextImpl.java:265)
at com.install4j.runtime.installer.InstallerContextImpl.checkStart(InstallerContextImpl.java:230)
at com.install4j.runtime.installer.controller.Controller.start(Controller.java:59)
at com.install4j.runtime.installer.Installer.runInProcess(Installer.java:41)
at com.install4j.runtime.installer.Installer.main(Installer.java:28)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:62)
at com.install4j.runtime.launcher.UnixLauncher.main(UnixLauncher.java:57)
[INFO] com.install4j.runtime.beans.actions.misc.RequestPrivilegesAction
[ID 13]:執行動作