1. Download source code: http://www.igniterealtime.org/downloads/source.jsp
2, the source code extracted from the Openfire_src folder to eclipse Workplace (note: If the change to understand the name of the file, then all the use of the filename of the place to make corresponding changes, otherwise it will error!) 3. Delete the three useless HTML files in the Openfire_src folder
4. Open Eclipse, create a new Java Project named Openfire_src, and then finish
Note: The default path here is the absolute path of the Openfire_src folder 5, after the project was built, several of the directories were error, due to the lack of 3 jar packages: Coherence.jar, Coherence-work.jar, Tangosol.jar
6. Download these jar packages and copy them to the/openfire_src/build/lib directory, 7, select the 3 newly added JAR packages, right click, choose Build Path---Add to build path
8, after the jar is compiled or there will be an error, the solution is to find the Java source files Sipcommrouter.java and Sipmanager.java, using the automatic repair of eclipse, the bug fix, generally do not implement the abstract method and do not handle the exception.
9. Click Windows, Show View, ant, select Add Buildfiles in ant, select the Build.xml in the build directory, and then OK
10. Copy the Tools.jar package from the Lib directory of the Java JDK to the Lib directory of the Java JRE 11, run the selected file
12, after the successful operation, refresh the project, the directory more than two folders
13. Select all the jar packages under the Target/lib directory, right-click, choose Build path–> Add to build Path (and step 7 similar) 14, select the item, click Run, and then go configurations
15. Select the Java application on the left of run configurations, right-click and select New
16. Select the Main tab, click Browse to select the OPENFIRE_SRC project, click Search to select Serverstarter-org.jivesoftware.openfire.starter, and the result is as follows
17. Select the Arguments tab and fill in the-dopenfirehome= "${workspace_loc:openfire_src}/target/openfire" in the VM arguments
18. Select the Classpath tab, select User Entries, and click the Advanced button on the right.
19. In the pop-up box, select Add Folders, check the src/i18n folder, click OK
20, repeat the previous step to add src/resources selected, the results are as follows: User entries two more folders
21. Select the Common tab, tick Debug and run, then click Apply, then click Run
22. Successful Operation result
23, the address entered in the browser http://127.0.0.1:9090
24, select Chinese, then continue. Server settings can be skipped directly. Database Settings Select Standard database connection, click Continue
25, in the database settings-standard connection Settings interface, select a database to drive MySQL, change the database URL, which need to change the server IP address, as well as the database name, it is recommended to establish a separate database named OpenFire. Enter the database administrator's account number and password, next.
26, the database connection successfully after the interface, directly click Continue.
27, Administrator account Settings interface, enter the administrator's email address, as well as the administrator's account password, the initial account is admin.
28, complete the settings, log in to the management console, the initial account name admin password for the password set in the previous step.
29. Display after successful login
30, the detection server is configured successfully, to http://www.igniterealtime.org/downloads/index.jsp download spark
31. Install spark, all the way next, then finish. Run spark and create a spark account
32. Use the created account to log in to spark, login successfully to the user group in the OpenFire management console to see the newly registered user and online status
OpenFire Development Configuration, OpenFire source code configuration, OpenFire two-time development configuration