1.選中項目,右擊,選中Run as --> Run as Configurations:
2.選擇左邊的Java Application,右擊,選擇New:
3.選中Main選項卡,點擊Browse選擇openfire_src項目;單擊Search選擇ServerStarter - org.jivesoftware.openfire.starter,結果如下:
4.選中Arguments選項卡,在VM arguments中填入-DopenfireHome="${workspace_loc:openfire_src}/target/openfire"
5.選中Classpath選項卡,選中User Entries,點擊右邊的Advanced按鈕:
6.在彈出的框中選中Add Folders,選中src/i18n文件夾,點擊ok按鈕,重複此步驟,增加src/resources,src/resources/jar:
7.選中Common選項卡,選中Debug和Run打鉤,點擊apply,再點擊下方run:
8.在Console中可以看到openfire已經正常啓動:
9.瀏覽器驗證: