0

我使用 PackJacket 应用程序创建了一个安装程序,并使用 IzPack 版本 4.3.5(最新稳定版)编译了 xml 规范。当我尝试运行安装时,进程停止与 java NullPointerException:

Current focus owner: null
Condition is fulfilled or not existent.
checking if os constraints [Os  family windows name null version null arch null
jre null ] match current OS
matched current OS.
Condition is fulfilled or not existent.
checking if os constraints [Os  family windows name null version null arch null
jre null ] match current OS
matched current OS.
Exception in thread "processing thread" java.lang.NullPointerException
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:441)
        at com.izforge.izpack.installer.ProcessPanelWorker$ExecutableFile.run(Un
known Source)
        at com.izforge.izpack.installer.ProcessPanelWorker$ProcessingJob.run(Unk
nown Source)
        at com.izforge.izpack.installer.ProcessPanelWorker.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:619)

这是相关的 xml 部分:

资源:

<res id="ProcessPanel.Spec.xml" src="Install_processPanelSpec.xml"/>

安装_processPanelSpec.xml:

<processing>
    <job name="Instalar DLL's">
        <os family="Windows"/>
        <executefile name="$INSTALL_PATH/dlls/install.bat">
            <arg/>
        </executefile>
    </job>
    <job name="Configurar Acesso ao Banco">
        <os family="Windows"/>
        <executefile name="$INSTALL_PATH/config.bat">
            <arg/>
        </executefile>
    </job>
</processing>
4

1 回答 1

0

改为<executable>在 a<pack>而不是<processing>.

<pack name="DLL Inner" preselected="yes" required="yes">
  <executable failure="abort" keep="false" stage="postinstall" targetfile="$INSTALL_PATH/install.bat"/>
</pack>
于 2012-04-13T19:48:00.347 回答