登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

云之南

风声,雨声,读书声,声声入耳;家事,国事,天下事,事事关心

 
 
 

日志

 
 
关于我

专业背景:计算机科学 研究方向与兴趣: JavaEE-Web软件开发, 生物信息学, 数据挖掘与机器学习, 智能信息系统 目前工作: 基因组, 转录组, NGS高通量数据分析, 生物数据挖掘, 植物系统发育和比较进化基因组学

openfire3.3.1.tar.gz导入eclipse3.1过程  

2009-04-13 20:05:44|  分类: java-j2ee |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

由于以前写了一篇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 only possible solution.


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下面

  评论这张
 
阅读(1628)| 评论(0)

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2018