Notes for setting up openfire and spark local development environments

Source: Internet
Author: User
Tags i18n

1. openfire

Reference: openfire build openfire plug-in Development Environment

1) download the source code from the official website (openfire_src_x.zip or SVN: http://svn.igniterealtime.org/svn/repos/openfire/trunk)

2) create an openfire project in eclipse, jdk1.6, project attribute points:

A)Java build path-> Source:

Openfire/src/Conf, openfire/src/i18n, openfire/src/Java, (the Output Folder above is the same)

Openfire/src/test/Java, openfire/src/test/resources (the above two Output Folder can be set to openfire/test-classes)

Java build path-> Libraries:

Openfire/build/lib/*, openfire/build/lib/Dist/*, openfire/build/lib/merge /*,

B)Run/debug settings-> main: Main class: org. jivesoftware. openfire. starter. serverstarter

Run/debug settings-> arguments: VM arguments input:-dopenfirehome = "$ {workspace_loc: openfire}/target/openfire"

Run/debug settings-> classpath: Add a directory under user entries:

Openfire/src/i18n, openfire/src/resources/jar, openfire/build/lib/Dist

 

C) Ant-> Add buildfiles... add openfire/build. XML, expand the added openfire XMPP server, and double-click openfire (openfire is default, so double-click openfire XMPP server). Later, the console displays build successful, indicating that the operation is successful.

D) run or debug the openfire project. The console displays the startup information of several services successfully.

 

2. Spark

Reference: spark deployment

(SVN: http://svn.igniterealtime.org/svn/repos/spark/trunk)

2) create a spark project in eclipse, jdk1.6, and key points of project properties:

A)Java build path-> Source: Spark/src/Java

Java build path-> Libraries:

Spark/build/lib/*, spark/build/lib/Dist/*, spark/build/lib/Dist/EXT/*, spark/build/lib/merge /*,

Spark/plugins/jingle/build/lib/Dist/*, spark/plugins/spelling/build/lib/*, spark/src/ial

B)Run/debug settings-> main: Main class: org. jivesoftware. launcher. startup, check stop in main

Run/debug settings-> classpath: Add the directory spark/src/resources under user entries

C) Ant-> Add buildfiles... add spark/build. XML, expand the added spark, and double-click release (release is default, so double-click spark). Later, the console displays build successful, indicating that the operation is successful.

D) run or debug the Spark project. The spark logon interface is displayed successfully.

From: http://coffeelover.iteye.com/blog/1533174

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.