OpenFire SVN + Eclipse 3.3 + Subversive Installation Guide

Source: Internet
Author: User
Tags svn

openfire SVN + Eclipse 3.3 + Subversive Installation Guide

OpenFire is the Jive Software led the development of a very powerful open source IM Server (formerly known as Wildfire), which is based on the XMPP protocol, fully implemented in Java, is a very good server-side software.

Recently participated in an open source project Thinksns, responsible for the IM section, so ready to study the source code of OpenFire, want to test and write their own codes, first of all to configure the operating environment of the source code, this article is based on this purpose, I hope to communicate with like-minded friends and learn together.

Plan to do not regularly their own learning notes and experience posted up, on the one hand, to urge themselves and interested colleagues to communicate more, but because recently has been very busy, time is limited, so the likely cycle will be relatively long.

If you are interested, you can give me a message, or you can send me a message to communicate with me: zhenyucheung@163.com


I. Install JDK (I'm using JDK1.6), no more details
Two. Install Eclipse 3.3 (no longer detailed)
Three. Install Subversive plugin
Subversive is a good svn plugin, the specific installation method please refer to my another article, "Install SVN plugin subversive in Eclipse", Link http://blog.csdn.net/zhenyucheung/archive/ 2008/03/19/2195518.aspx


Four. Check out OpenFire source code
1. Click Windows->open in Eclipse perspective->other
2. Click SVN Repository Exploring in the pop-up window and then click OK
3. In the SVN repositories Point right button, select New->repository Location ...
4. In the pop-up new Repository Location page, will http://svn.igniterealtime.org/svn/repos enter the URL text box, point finish. You will see the URL address of the page appearing.
5. Expand URL Address
6. Expand the OpenFire tree-shaped structure
7. Right click on trunk, select Check out
The rest is waiting for check out to complete:)


Five. Create OpenFire Project
For those who have used eclipse, this step is not to mention, but here are just a few points to note.
1. After check out, eclipse will automatically create a OpenFire project, please delete it (note that delete content is not deleted), otherwise you will have to manually configure some development environment.
2. Create project from existing source new project, pay attention to the project name to use OpenFire.

The


Six. Build OpenFire
  OpenFire is built with ant, so you set up a built-in ant tool for every compilation in eclipse to ensure the correct execution of the compilation.
  1. In Eclipse, click Window->show view->ant
  2. At the Ant page, select Add buildfiles ...
  3. Expand Openfire/build folder, select Build.xml, click OK.
  4. On the Ant page, expand OpenFire XMPP Server, double-click openfire Ant task


Seven. Create Project Builder
1. Click Run->open Run Dialog ...
2. Choose Java Application, click the New button
3. In the main tab of the Run window, change the value in the Name text box to OpenFire, and other names can be
4. Click the browse button, select OpenFire, click OK
5. Click the Search button, select Main class for Org.jivesoftware.openfire.starter.ServerStarter, click OK. (This is the starting class for OpenFire)
6. Click to enter Arguments tab
7. Enter-dopenfirehome= "${workspace_loc:openfire}/target/openfire" in the VM arguments text box, which is the parameter that is passed when the eclipse executes the Java command. This allows the OpenFire program to get OpenFire's local location through the System.getproperty ("Openfirehome").
8. Click to enter Classpath tab
9. Click the user Entries, so advanced ... Is in the available state
10. Click Advanced ... Button
11. In the Advanced Options page, select Add Folders, click OK.
12. Select openfire/src/i18n, click OK to add this folder to class path, and add Openfire/src/resources/jar to class path in the same way.
13. In the Common tab, click the Run check box.

Set up, so that when you run this project will be in accordance with the correct configuration, debug settings and run settings similar, no more.
Reference article: http://www.igniterealtime.org/community/docs/DOC-1020

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.