Openfire development configuration, openfire source code configuration, and openfire Secondary Development Configuration

Source: Internet
Author: User
1, download source code: http://www.igniterealtime.org/downloads/source.jsp

 

2. Place the openfire_src directory decompressed by source code to eclipse workplace (Note: If you want to change the name of the file to be decompressed, you must change the name of all files to be used, otherwise, an error is reported !) 3. delete three useless HTML files in the openfire_src directory

 

4. Open eclipse, create a Java project named openfire_src, and finish

Note: The default path here is the absolute path of the openfire_src directory.

 

5. After the project is created, Several folders report errors because three jar packages are missing: coherence. jar, coherence-work.jar, tangosol. Jar

 

6. Download these jar packages and copy them to the/openfire_src/build/lib folder,

 

7. Select three newly added jar packages, right-click, and choose build path> Add to build path.

 

8. After the jar package is compiled, an error still occurs. The solution is to directly find the Java source file sipcommrouter. java and sipmanager. java, you can use eclipse to manually fix errors. Generally, there is no abstract method or exception handling.

 

9. Click window-> show view-> ant, select Add buildfiles from ant, select build. XML in the build folder, and click OK.

 

10. Copy the tools. jar package in the Lib folder of Java JDK to the Lib folder of Java JRE. 11. Run the selected file.

 

12. After the execution is successful, refresh the project. There are two more folders in the folder.

 

13. Select All jar packages in the target/lib folder, right-click, and choose build path> Add to build path (similar to Step 7)

 

14. Select a project and click Run> RUN configurations

 

15. Right-click the Java application on the left side of run configurations and choose new

 

16. Select the main tab, click browse and select the openfire_src project, and click search to select serverstarter-org. jivesoftware. openfire. starter. The result is as follows:

 

17. Select the arguments tab and enter-dopenfirehome = "$ {workspace_loc: openfire_src}/target/openfire" in VM arguments"

 

18. Select the classpath tab, select user entries, and click advancedbutton on the right.

 

19. In the pop-up box, select Add folders, select the src/i18n directory, and click OK.

 

20. Repeat the previous step to add src/resources to the selected directory. The result is as follows: there are two more directories under user entries.

 

21. Select the common tab, check debug and run, click Apply, and then click Run.

 

22. Successful execution result

23. Enter the address http: // 127.0.0.1: 9090 in the browser.

 

24. Select Chinese and continue. Server settings can be skipped directly. Select standard database connection for database settings, and click Continue

 

25. On the database settings-standard connection settings page, select the database driver MySQL and change the database URL. The serverip address and database name must be changed, we recommend that you create a database named openfire separately. Enter the account and password of the database administrator.

 

26. After the database connection is successful, click Continue.

 

27. On the Administrator account settings page, enter the Administrator's email address and password. The initial account is admin.

 

28. After setting, log on to the Management Console. The initial account name adminpassword is the password set in the previous step.

 

29. displayed after successful login

 

30. Check whether the ingress server is configured successfully. Download spark at http://www.igniterealtime.org/downloads/index.jsp.

 

31. Install spark, next and finish. Run spark to create a spark account.

 

32. Use the created account to log on to spark. After successful login, you can view the users and online status of the new injection queue in the user group on the openfire console.

 

 

Openfire development configuration, openfire source code configuration, and openfire Secondary Development Configuration

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.