Openfire源碼使用Install4j打包

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

下載並安裝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的方法及打包操做。

eclipse

相關文章
相關標籤/搜索