OpenFire Source Code Deployment

Source: Internet
Author: User

1. Download the OpenFire source code, unzip the zip file, the extracted file named Openfire_src, will openfire_src the following changelog.html, license.html, readme.html Delete

2. Put the source Openfire_src file in the build with an Eclipse folder, a settings folder and classpath,project two files, copy them to the build sibling, and change them to. setttings. Classpath. Project found direct change is not possible, but can be changed in the console, run cmd, switch to the current path

Use the Rename settings. Settings to change the folder to. Settings, other two similar changes

3. Then import the project in Eclipse. After the project is imported, there will be a lot of errors, because missing some jars, need to download the required jar I backed up a copy in the Nut cloud: Http://jianguoyun.com/p/DaOG3qgQlpTpBRiwvgs

4. After the download is complete, copy the jar to the build-->lib directory and then add the project reference through the project build path--------build config path

5. There will still be errors after the refresh, because some jar references are missing,

Choose Add jars to add the jar that starts build\lib\dist below BCP to the project. At this point, there are basically two or three errors left, which can be automatically repaired in the Java file according to Elipse's prompt.

6. Compiling the source code

Click Windows, Show View, ant, select Add Buildfiles in ant, select the Build.xml in the build directory, and then OK

7. After the compilation is successful, click Start on the Ant panel

The output information can be seen in the console and, if it is the following information, indicates a successful start:

7. Refresh the project, you will find two more folders Target and work

8. Click Project, run as--> Java Application The class that contains the main function will be searched at this time

Select Serverstarter This class, click OK

9. Click Project, run as--and run configurations

Change to this, then select Arguments tab, configure options

10. Fill in the-dopenfirehome= "${workspace_loc:openfire_src}/target/openfire" in VM arguments

11. Select the Classpath tab, select User Entries, and click the Advanced button on the right.

Select Add Folder
Add src/i18n separately to determine
Select the advanced...–> on the right to select Add Folder
Build/lib/dist OK
Select the advanced...–> on the right to select Add Folder
Src/resources/jar OK

12. Select the Common tab, tick Debug and run, then click Apply, then click Run

13. First run, you will be reported to be getappname empty error (This error occurred, to restart Eclipse)

At this point only need to go to the OpenFire source directory will be openfire_i18n_en.properties and admin-sidebar.xml copy to the project Bin directory

OpenFire Source Code Deployment

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.