2012-01-04 23 views
0

私はPackJacketアプリで1つのインストーラを作成したとのIzPackバージョン4.3.5(最新の安定)でXML仕様をコンパイル。IzpackはBatファイルを処理するために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"/> 

Install_processPanelSpec.xml:

私が実行しようとしたとき、プロセスがJava NullPointerExceptionでのを停止し、インストール <pack>中で <executable>を使用するように変更
<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

<processing>の代わりに

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