配置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 ...
随机推荐
- 题目:解决.NET项目中的平台选项,由x86设置为AnyCPU
问题:开发出的.NET程序在windows7 X64平台无法使用,打开提示异常”stopping work….” 1.打开解决方案中的配置管理器,发现有部分程序集的平台是x86,想改变平台选项,发现无 ...
- android 教程实例系列
用户界面部分学起来还真是无处下手哇,总不能一个控件发一篇文吧,略有点费时间啊...这个难道不是边用边学才给力吗..所以我打算从最实用的Button开始下手. 先贴几个链接,好东西: android用户 ...
- 关于SQLSERVER中用SQL语句查询的一些个人理解
作为一个编程菜鸟说真的很难有什么见解,也就是写给一些刚学习编程的人,希望能给他们一些帮助吧! SQLSERVER作为刚开始入门学习的数据库,SQL语句也并不算太难!说白了也就是建库,建表,建约束,对数 ...
- ubuntu14.0.4.3 devstack 安装openstack
参考网址: http://www.chenshake.com/install-ubuntu-14-04-devstack/ 现在装完一切正常,就是不能重启,一旦重启VM,会导致给br-ex设置的IP地 ...
- MIT 6.828 JOS学习笔记8. Exercise 1.4
Lab 1 Exercise 4 阅读关于C语言的指针部分的知识.最好的参考书自然是"The C Programming Language". 阅读5.1到5.5节.然后下载poi ...
- TComboBox; 指定某一行,不给下拉,只读ReadOnly 伪装 实现
//cbb1: TComboBox; 指定某一行,不给下拉,自读伪装 实现: cbb1.Style :=csSimple; //设定style 不可以下拉 cbb1.ItemIndex := ; // ...
- C#连接Oracle数据库(直接引用dll使用)
转载至:http://www.cnblogs.com/gguozhenqian/p/4262813.html 项目中有个功能需要从一台Oracle数据库获取数据,本以为是很简单的事情,直接将原来的Sq ...
- Linux crontab 命令格式与详细例子
基本格式 :* * * * * command分 时 日 月 周 命令 第1列表示分钟1-59 每分钟用*或者 */1表示第2列表示小时1-23(0表示0点)第3列表示日期1-31第4列表示月份1-1 ...
- Xamarin的不归路-生成安卓错误
编译生成安卓时提示错误 解决方案:删掉此文件夹(C:\Users\***\AppData\Local\Xamarin\)内所以文件夹和文件,再FQ重新编译即可. 2016年9月1日 13:33
- 【noip 2004】 合并果子
noip2016结束后的第一份代码--优先队列的练习 合并果子 原题在这里 #include <iostream> #include <queue> #include < ...