taskdef class com.install4j.install4jtask cannot found解決



1.查看openfire_src/build下的build.properties.template,設置installer.install4j.home= ""  爲install4j爲安裝路徑


2.修改bulid.xml

我這裏將install4j安裝到D:\Program Files\install4j下。

這樣一段代碼
 <property file="${basedir}/build/build.properties"/> 
將它改爲
 <property file="${basedir}/build/build.properties.template"/> 


同時修改install4j路徑:
    <property name="installer.install4j.home" value="/home/j2ee-bamboo/install4j.4.0.5"/>
將它改爲自己的install4j的安裝路徑:
    <property name="installer.install4j.home" value="D:\Program Files\install4j"/>


3.build.xml文件修改

  <taskdef name="install4j"
            classname="com.install4j.Install4JTask"
            classpath="C:\progrom\install4j\bin\ant.jar"/>


發佈了29 篇原創文章 · 獲贊 8 · 訪問量 9萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章