配置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 ...
随机推荐
- [Linux]在linux中,常常用到ctrl和其他按键组合,常用的有哪些及意义呢
在linux中,常常用到ctrl和其他按键组合,常用的有哪些及意义呢? Ctrl+c 结束正在运行的程序 Ctrl+d 结束输入或退出shell Ctrl+s 暂停屏幕输出[锁住终端] Ctrl+q ...
- xor和gates的专杀脚本
前段时间的一次样本,需要给出专杀,应急中遇到的是linux中比较常见的两个家族gates和xor. 首先是xor的专杀脚本,xor样本查杀的时候需要注意的是样本的主进程和子进程相互保护(详见之前的xo ...
- wordpress电子商务插件和主题的使用方法
前提步骤:卸载wordpress干净,需要把相应的数据库删除:drop databade **: (1)先改wordpress中重要文件的权限:777 (2)用usradd -d www /html命 ...
- java 反射实践
/** * * @author yuxg */ import coreJava.javaFile; import javaClassStudy.Student; import javaClassStu ...
- AMR 转mp3 失败
private void changeToMp3(String sourcePath) { File source = new File(sourcePath); String mp3TargetPa ...
- ACM: SCU 4440 Rectangle - 暴力
SCU 4440 Rectangle Time Limit:0MS Memory Limit:0KB 64bit IO Format:%lld & %llu Practic ...
- O(n) 筛法求素数
var tot,i,j,k,m,n:longint; prime:array[0..100000] of boolean; p:array[0..100000] of longint;begin re ...
- Maven项目WEB-INF/views无法引入js,css静态文件解决方法
web.xml针对文件后缀配置以下,对客户端请求的静态资源如图片.JS文件等的请求交由默认的servlet进行处理 <servlet-mapping> <servlet-name&g ...
- CentOS下通过yum安装svn及配置
CentOS下通过yum安装svn及配置 1.环境centos5.5 2.安装svnyum -y install subversion 3.配置 建立版本库目录mkdir /www/svndata s ...
- NotePad++左侧导航
NotePad++ 1. 增加左侧导航 a. 通过工具栏里面的“插件”->Plugin Manager-> Shwo Plugin Manager b. 找到Explorer勾选,点击I ...