配置Openfire的eclipse项目
官方文档在这里
Install JDK
Download JDK and install them. The least version should be 1.5. I use 1.6. Sorry, no instruction for this.
Install Eclipse 3.3
Download Eclipse 3.3 from www.eclipse.org. I use Eclipse IDE for Java EE Developers. You should at least use Eclipse IDE for Java Developers.
Extract the downloaded zip file into C:/Program Files/Eclipse.
Open C:/Program Files/Eclipse folder.
Right click and drag eclipse.exe on to your desktop (or Windows taskbar) to create a shortcut icon.
Right click the shortcut icon and choose Properties. The Eclipse Properties window will show.
The Target textbox should read something like this "C:\Program Files\Eclipse\eclipse.exe" -vm "C:\Program Files\Java\jdk1.6.0\bin\javaw"depending on the JDK that you use and where you installed it.
Close the Eclipse Properties window.
Install Subversive Plugin
Double-click the shortcut icon to start Eclipse.
Select/enter your preferred workspace and click OK to open Eclipse main IDE window.
Click on the Workbench icon to close the welcome screen.
Click Help::Software Updates::Find and Install... menu.
Click on Search for new features to install and click Next.
Click on New Remote Site... button.
Enter Subversive in the Name box and http://www.polarion.org/projects/subversive/download/1.1/update-site in the URL box (Check the latest URL from http://www.eclipse.org/subversive website), then click OK.
Click Finish to install Subversive. Eclipse will search for the update site and show the result in a next window where you will select the features to install. I choose everything under Subversive SVN Team Provider Plugin and Subversive Client Libraries.
Click Next to continue and so on until the installation ends. You normally want to restart Eclipse when the installation ends.
Check Out Openfire SVN
Click Windows::Open Perspective::Other... menu.
Click on SVN Repository Exploring on the Open Perspective window and click OK.
Right-click on SVN Repositories screen and choose New::Repository Location...
On New Repository Location enter http://svn.igniterealtime.org/svn/repos in the URL box and click Finish. You'll see the URL location in the SVN Repositories screen.
Expand the URL location.
Expand the openfire tree.
Right-click on trunk and choose Check Out. Make yourself some Cafe-Latte while waiting for the checkout to complete.
Create Openfire Project
Click Window::Open Perspective::Java menu.
In the Project Explorer screen, if there is an openfire project, delete it. This project was created during the Openfire check out process. Yes you read it correctly, DELETE the project!!! Otherwise you'll have to setup your Openfire development environment manually. On the Confirm Project Delete choose Do not delete contents, then click Yes.
Click File::New::Project... Notice the ellipses!!!
Select Java::Java Project and click Next.
On the New Java Project window choose Create project from existing source and browse to where openfire folder is located under your workspace.
- 我照着做的时候好像没有这个选项,直接把use default location的挑勾去掉。输入源码的位置就行了。
In the Project name box enter exactly as openfire. Otherwise, the Next and Finish button remain disabled. Click on Next. Eclipse will read the directory structure to setup the environment automatically (almost) for you and you can see what it does on the next screen. Then click on Finish. 项目名必须是openfire
If the Open Associated Perspective windows opens, click Yes. 切换到java视图
Build Openfire
Click Window::Show View::Ant menu. 设置ANT 编译
Right-click the Ant screen and choose Add Buildfiles...
Expand the openfire::build folder and select build.xml, then click OK.
On the Ant screen, expand the Openfire XMPP Server and double-click on openfire ant task. The build may fail because you're checking out the daily updates of Openfire sources, which may contain bugs. If so, wait for another day and hope that the developers discover and fix the bug; or you might dare to fix it yourself. During this first time setup, a successful build is necessary before you can proceed with the remaining tasks below.
Create Project Builder
Click Run::Open Run Dialog... or Run::Open Debug Dialog... menu. A Run window shows.
Select Java Application and click on the New button.
On the Main tab of the Run window, change the New_configuration name to Openfire or anything you like.
Click on Project::Browse button and select openfire and click OK.
Click on Main class::Search button and select ServerStarter - org.jivesoftware.openfire.starter and click OK.
I'd suggest that you select Stop in main check box so that you could later verify that debugging works.
Click on the Arguments tab.
Enter -DopenfireHome="${workspace_loc:openfire}/target/openfire" in the VM arguments box.
Click on Classpath tab.
Select User Entries so that the Advanced... button will be enabled.
Click on the Advanced... button.
On the Advanced Options window select Add Folders and click OK.
On the Folder Selection window select openfire::src::i18n folder and click OK.
Click on the Advanced... and Add Folders buttons once again to include openfire::src::resources::jar folder.
- Click on the Advanced... and Add Folders buttons once again to include openfire::build::lib::dist folder.
Click on Common tab.
Select the Debug and Run check box.
Click on Apply button.
Click on Close button.
Run/Debug
The setting is now complete for Openfire.
You may test running and debugging by clicking on Run::Run History::Openfire and Run::Debug History::Openfire respectively. If you choose the later and if you follow this instruction closely, execution will stop on the main method in ServerStarter.java.
配置Openfire的eclipse项目的更多相关文章
- 约定优于配置---Java的eclipse项目配置
0.测试文件夹test (测试文件的文件夹和源文件夹src是并行的关系,且位于同一目录) 以后源文件.java文件放在src目录下,相应的单元测试文件放在同级别的test目录下,且内部路径要相同 1. ...
- IDEA + TortoiseSVN 导入 Eclipse 项目
IDEA 是目前最好用的 Java 开发工具,所以我一直用的 IDEA,但是项目是由 Eclipse 创建,并且项目中一部份成员用 Eclipse.由于版本控制一直用的小乌龟(TortoiseSVN) ...
- 在eclipse上部署openfire 3.9.1源码,並配置openfire
参考文章:https://my.oschina.net/u/1409622/blog/205603 在网上找了很久部署openfire源码的文章,由于我使用的是最新的3.9.1源码,试了很多种部署方法 ...
- 【项目管理和构建】十分钟教程,eclipse配置maven + 创建maven项目(三)
[项目管理和构建]十分钟教程,eclipse配置maven + 创建maven项目(三) 上篇博文中我们介绍了maven下载.安装和配置(二),这篇博文我们配置一下eclipse,将它和maven结合 ...
- Eclipse项目导入Android Stuio 配置出现 Timeout waiting to lock buildscript class cache for build file 'H:\studioproject\Generic_SN\build.gradle'
Eclipse项目导入Android Stuio 配置出现 Error:Timeout waiting to lock buildscript class cache for build file ...
- eclipse配置maven + 创建maven项目
登录|注册 努力+坚持,而且还很年轻 目录(?)[+] 在现实的企业中,以低成本.高效率.高质量的完成项目,不仅仅需要技术大牛,企业更加需要管理大牛,管理者只懂技术是远远不够的.当 ...
- eclipse配置maven + 创建maven项目(三)
上篇博文中我们介绍了maven下载.安装和配置(二),这篇博文我们配置一下eclipse,将它和maven结合,并我们创建一个maven的项目. 准备工作 在eclipse配置maven之前需要我们做 ...
- Intellij IDEA导入eclipse项目配置jdk、tomcat到浏览器正常访问
转发自:博客园---Lindp(大佬写的甚好) 以下是转发的正文 intellij idea中文资料网上比较少,对于eclipse的项目如何导入intellij idea也没有完整的说明,本人在这里整 ...
- idea导入eclipse项目的配置
idea导入eclipse项目需要的配置 1.配置jdk,这两处选择一样就可以,也可以根据自己需求选择,上边的比下边的版本高就行 2.这里会默认和配置jdk一样 3.添加lib依赖,选择到项目的lib ...
随机推荐
- [C++11][算法][穷举]输出背包问题的所有可满足解
关于背包问题的题目,前人之述备矣,这里只讨论实现 输入: n ca w_1 v_1 w_2 v_2 ... w_n v_n 其中,n是物品总数,ca是背包大小,w_n是第n个物品的重量,v_n是第n个 ...
- containing block
1(position:static和relative) 它的包含块由它最近的块级.单元格(table cell)或者行内块(inline-block)祖先元素创建. 2.position:fixed ...
- 2016 Multi-University Training Contest 1 C.Game
Game Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submis ...
- Leetcode jump Game II
Given an array of non-negative integers, you are initially positioned at the first index of the arra ...
- MySQL字段数据类型表
* MySQL支持所有标准SQL数值数据类型. 数值类型BIT数据类型保存位字段值,并且支持MyISAM.MEMORY.InnoDB和BDB表.作为SQL标准的扩展,MySQL也支持整数类型TINYI ...
- HDU 3038 How Many Answers Are Wrong(种类并查集)
题目链接 食物链类似的题,主要是在于转化,a-b的和为s,转换为b比a-1大s.然后并查集存 此节点到根的差. 假如x的根为a,y的根为b: b - y = rank[y] a - x = rank[ ...
- CentOS7下安装chrome浏览器
在CentOS 7环境下安装chrome浏览器 1.修改yum源 在/etc/yum.repos.d/目录下新建文件google-chrome.repo,向其中添加如下内容: [google-chro ...
- 通过Gulp使用Browsersync实现浏览器实时响应文件更改
Gulp是什么鬼 Browsersync又是什么鬼 如何安装使用Browsersync 安装 使用 效果图 参考 Gulp是什么鬼 Gulp是一种基于node.js的构建工具,有关构建工具的概念请移步 ...
- 初学者对于MVC架构模式学习与理解
理解MVC的工作原理,明白一个网页是如何显示出来的 之前一直盲目的在慕课上看视频,脑袋里想着要理解mvc,看了mvc相关的视频,看完之后就觉得空白白的,M,V,C各代表什么我知道,但是这个究竟有啥意思 ...
- PHP连接数据库的方法
mysql可通过两种方式通过PHP和web相连,一种通过php的mysql相关函数,另一种通过php的ODBC相关函数. 相关函数如下: MYSQL函数 mysql_affected_rows: 得到 ...