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 arget下新建release文件夹,把openfire_src argetopenfire复制进去,然后复制openfire_srcLICENSE.html到openfire_src argetopenfir下。复制JRE(可以在Media设置里,设置为不包括JRE)到C:Program Filesinstall4j5jre下,双击openfire_srcuildinstalleropenfire.install4j(会读取build.xml的设置,不需要一步步设置),左边导航点Build,在右边点Test Build。如果Test Build成功则点击Start Build进行打包。
下图为设置不打包JRE的方法及打包操作。

原文地址:https://www.cnblogs.com/keepsilence/p/4091123.html