openfire_編譯運行

來源:互聯網
上載者:User

1.下載地址:http://www.igniterealtime.org/downloads/source.jsp

2.編譯工具eclipse,選用ee版本的,下載地址:http://www.eclipse.org/downloads/

3.例如:eclipse-jee-kepler-SR1-win32.zip和openfire_src_3_9_1.zip

4.apache-ant 和 myeclipse都可以編譯通過,略去,,,

5.解壓openfire_src_3_9_1.zip得到openfire_src

6.開啟eclipse

7.開啟:File->New->Java Project

8.在快顯視窗中,鉤掉“Use default location”,用location右側的Browse,瀏覽到解壓的openfire_src,選中,自動填滿Project name為openfire_src

9.工程會報錯,幹掉那些出錯的包。用New->Source Folder增加src/i18n和src/resources/jar,如圖:


10.點擊build檔案夾,看到build.xml。在其上右鍵,Debug As->Ant Build開始編譯,console中會提示編譯正確,在工程上按F5,產生了target和work檔案夾

11.點擊Run->Debug Configurations。彈出的視窗,main屬性頁面中,Java Applications項,在Main class中,選中org.jivesoftware.openfire.starter.ServerStarter

12.Arguments屬性頁面,VM arguments編輯框,配置openfireHome路徑,增加-DopenfireHome="d:/test/openfire_src/target/openfire"

13.正確運行。進入http://127.0.0.1:9090/配置

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.