Openfire源码使用Install4j打包

https://www.ej-technologies.com/download/install4j/files

下载并安装install4j
https://www.ej-technologies.com/download/install4j/files

注:5.1版本会显示警告
修改myeclipse中jvm参数

修改build.xml


打包
4.1 网上找到的方法
本机测试不成功,在打包文档之后就没有反应

4.2 本机测试成功的方法
在openfire_src\target下新建release文件夹,把openfire_src\target\openfire复制进去,然后复制openfire_src\LICENSE.html到openfire_src\target\openfir下。复制JRE(可以在Media设置里,设置为不包括JRE)到C:\Program Files\install4j5\jre下,双击openfire_src\build\installer\openfire.install4j(会读取build.xml的设置,不需要一步步设置),左边导航点Build,在右边点Test Build。如果Test Build成功则点击Start Build进行打包。
下图为设置不打包JRE的方法及打包操作。

posted @ 2014-11-12 09:12  keepsilence  阅读(1059)  评论(0编辑  收藏  举报