由于以前写了一篇JWCHAT+Openfire的文章,好多的同事们问我关于在Eclipse下面怎么配置Openfire的,因此特此把原来的配置过程写出来,供大家参考:同时,我也会把这个文档上传到CSDN上面去.
参考网址:
http://www.igniterealtime.org/community/docs/DOC-1022
Openfire .tar.gz + Eclipse 3.1 Installation Guide
VERSION 1 Published
Created on:Aug 17, 2007 11:56 AM by it2000 - Last Modified: Aug 17, 2007 12:03 PM by it2000
The following instructions were updated in May 2007 for Openfire.
Setup Openfire
Install jdk-1_5_0_11-windows-i586-p.exe (or just copy the files to
%programfiles%\Java so you're registry is not modified)
Extract eclipse-SDK-3.1.2-win32.zip to C:\Tools\
Start C:\Tools\eclipse\eclipse.exe and set
Workspace to C:\ws\eclipse\workspace\
If start fails because no javaw.exe is found add
%programfiles%\Java\jdk1.5.0_11\bin to the PATH
variable manually and start it
Close the Welcome screen
Menu Window, Preferences; Java, Compiler:
"Compiler Compliance Level:" 5.0
Exit Eclipse
Extract openfire_src_3_3_1.jar to C:\ws\eclipse\workspace\
Start Eclipse
Select File, New, Project;
Java Project Next;
Project Name "openfire_src" (JDK Compliance and
Projct layout will get disabled) Next;
Finish
Menu Window, Show Wiew, Ant;
Right click in "Ant", "Add Buildfiles"
Select openfire_src\build\build.xml
Double click "all" ... and wait to complete the build
Help Eclipse to find the right build path
Menu File, Properties: Configure Build Path: Libraries: Add External JARs: Add all files you find in openfire_src\target\openfire\lib
That's really a little bit crazy but with this Eclipse version it seems to be the on
Debug Openfire 3.3.1
Menu Run, Debug ...: New
Main
Project: openfire_src
Main class: org.jivesoftware.openfire.starter.ServerStarter
Arguments
Program Arguments:
VM Arguments:
\-DopenfireHome="$\{workspace_loc:openfire_src\}/target/openfire"
应修改成:
-DopenfireHome="${workspace_loc:openfire_src\}/target/openfire"
Working Directory
[x] Use default working directory
Workspace: $\{workspace_loc:openfire_src\}
Apply
Debug
另外:
要把下面的几个文件
其中admin-sidebar.xml
openfire_src\src\resources\jar 下有 admin-sidebar.xml
admin-sidebar.xml
openfire_i18n.properties
openfire_i18n_cs_CZ.properties
openfire_i18n_de.properties
openfire_i18n_en.properties
openfire_i18n_es.properties
openfire_i18n_fr.properties
openfire_i18n_nl.properties
openfire_i18n_pl_PL.properties
openfire_i18n_pt_BR.properties
openfire_i18n_zh_CN.properties
以上的properties在
openfire_src\resources\i18n
如果以上文件没有的话,请在安装openfire3.3.2.exe后的../lib/spark.jar包中可以找到
复制到相应的地方:
1.src下面
2.src/java下面
评论