2012-01-04 45 views
0

我創建了一個安裝程序與PackJacket應用程序,並與的IzPack版本4.3.5(最新的穩定)編制的XML規範。當我試圖運行安裝,過程停止的與Java NullPointerException異常:Izpack拋出NullPointerException來處理bat文件,如何解決?

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"/> 

Install_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> 

回答

0

改變在使用<executable><pack>代替<processing>

<pack name="DLL Inner" preselected="yes" required="yes"> 
    <executable failure="abort" keep="false" stage="postinstall" targetfile="$INSTALL_PATH/install.bat"/> 
</pack> 
相關問題