Openfire plug-in Development Environment Construction

Source: Internet
Author: User
Openfire construction and running 1 Check Source

SVN http://svn.igniterealtime.org/svn/repos/openfire/trunk.
Check the entire openfire Project
After checking, right-click Project --- team -- disconnect -- select 'and delete SVN information' from the file, and then delete the entire project, do not select the 'delete disk Content'
Then import the original project
Or download the entire openfire source code and decompress it.
Create a Java project named openfire. Select 'create project from existing source' in the following contents to browse to the decompressed 'openfire _ src' and click Finish.
If you cannot find the package, add the jar package as follows:

2. Add a jar package

Right-click the project --> buildpath --> Configure buildpath --> library -- add jars
Add all lib and jar packages in its subdirectories to openfire.
Add the jar package under the lib directory in the plug-in

3. Configure running parameters

Run: Open Run dialog... menu.
Or run -- run Configuration
Right-click Java application and create a Java application and rename it openfire.

Select the project openfire you just created
Main class :( search) org. jivesoftware. openfire. starter. serverstarter
Click arguments.
In VM-arguments, Type
-Dopenfirehome = "$ {workspace_loc: openfire}/target/openfire"
This actually tells openfire where openfirehome is to be executed by eclipse.
The parameter passed in the Java command. The openfire program can use system. getproperty ("openfirehome") to obtain the local location of openfire.

Click the classpath Option
User entries ---> advanced --> Add folder ---> OK
Add the following three directories:
Openfire: SRC: i18n
Openfire: SRC: Resources: jar
Openfire: Build: Lib: Dist
Click the common tab.
Check the debug and run check boxes.
Set Virtual Machine Parameters
Click the JRE tab.
Installed jres --> selected JRE ---> edit --> default VM arguments
-Xms256m-xmx256m-XX: maxnewsize = 256 m-XX: maxpermsize = 256 m
If it is the default size, it is likely to report
Java. Lang. outofmemoryerror: permgen space exception.

 

4 compile openfire with ant

 
Eclipse click Run -- External tools configurations --> ant build
Right-click New and name it openfire.

Buildfile --> openfire/build. xml
Common --> select external tools
Or
1. In eclipse, click window --> show View --> ant
2. Right-click the ant page and choose add buildfiles...
3. Expand the openfire/build folder, select build. XML, and click OK.
4. On the ant page, expand openfire XMPP server and double-click the openfire ant task.

 

5. Run openfire

 

1. Compile openfire
First, select 'openfire' in ecternal tools of common. Eclipse automatically uses ant for compilation. When the build successful appears, the compilation is successful.
Second, double-click openfire in ant view to start compilation. The effect is the same.
If compilation fails, check whether to add the jar package. The next step must be started only after the compilation is successful.
2. Run openfire, select the openfire We Just configured in the common run, and click Run (you cannot right-click it to run it, So openfirehome cannot be found ).
'Critical error! The Home Directory has not been configured ,'
This indicates that openfire_home is not correctly set.
If nothing happens, you should be able to run it successfully. The console displays the 'HTTP: // 127.0.0.1: 8080' listener
3. Enter 'HTTP: // 127.0.0.1: 9090 'in the browser to go to The openfire initial configuration page.
Follow the official instructions for step-by-step configuration.

Finally, log on to the console. If the login fails for the first time, stop the server, restart the server, and log on to the console. In this way, openfire is basically set up and running locally.

 

Next I will upload a comprehensive introduction to openfire, which is very useful !!

 

For more articles, refer:

Http://www.igniterealtime.org/community/docs/DOC-1020 openfire Configuration

Development Configuration of http://community.igniterealtime.org/docs/DOC-1200 plug-in

Http://wobuxiaole.iteye.com/blog/622294 openfire Construction

Http://www.io89.com/blog/Article/45.aspx openfire Construction

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.