taskdef class com.install4j.install4jtask cannot found

来源:互联网 发布:淘宝账号贷款 编辑:程序博客网 时间:2024/06/06 00:32

使用eclipse编译openfire,其中ant添加bulid.xml时报错

taskdef class com.install4j.install4jtask cannot found

原因是bulid.xml的installer.install4j.home所对应的install4j路径不对

解决:

1.下载安装install4j

页面http://download.csdn.net/detail/wjx5858598/2861075

地址http://dldx.csdn.net/fd.php?i=854628610758033&s=4698e847820b00451d5034cf5e433f5e

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

参考:http://resources.ej-technologies.com/install4j/help/doc/indexRedirect.html?http&&&resources.ej-technologies.com/install4j/help/doc/cli/ant.html

http://www.verydemo.com/demo_c167_i4909.html

0 0
原创粉丝点击