After nearly three days, I finally completed the deployment of openfire3.9.1 source code. Because the latest version is 3.9.1, it is more or less different from other versions!
1. Download source code
Download from the official website: http://www.igniterealtime.org/downloads/source.jsp. it is generally on the Internet!
Or can go to my Baidu Network Disk up and down, http://pan.baidu.com/s/1jG4wvci!
I chose the first download.
2. decompress the package to the working directory.
3. Import Source Code
I am using myeclipse and the version is 10.0.
A. Copy ". classpath "and ". project ", these two files are all dot! Then, copy the classpath from the eclipse folder, and replace the content in the two files of the project with the corresponding content in. classpath and. project respectively. Then you can delete the files of classpath and project.
B. Use myeclipse to import the project
After import:
4. Add a jar package
Download link: http://download.csdn.net/detail/gufeilong/7003843,free!
After downloading the package, put all the jar packages in build --> lib and add all the packages to build path;
The final result is that there will be three file errors: SipCommRouter and SipManager only need to implement the system method, and the other CertificateManager will have several errors,
If there are these three errors, the first forced conversion type will work, and the second will be changed to: csr. toASN1Object (). Because that method is not provided, the third method is put directly in othernameGN. It is estimated that the constructor method is different! These three methods have been developed by myself and cannot be completely correct. If you have better options, you can choose to use them. So far, there has been no such thing! I have seen that some import methods are not the same as mine, and some plug-ins need to be deleted. I do not know the source code yet, so I have no choice!
4. Compile the source code
Click Window-> Show View-> Ant, select Add Buildfiles from Ant, select build. xml under the build directory, and then OK
Select a project and run
Result: okbuild successful.
Total time: 35 seconds
Compiled successfully!
5. Refresh the project
Two more folders
6. Select a project and click run> run configurations --->
Java Application -----> right-click --> New;
Click workspace to select ky "http://www.bkjia.com/kf/web/php/" target = "_ blank" class = "keylink"> PHP7sS/PC9wPgo8cD48aW1nIHNyYz0 = "http://www.2cto.com/uploadfile/Collfiles/20140310/2014031008445335.jpg" alt = "\">
Click search ---> input: ServerStarter
7. Select the Arguments tab and enter-DZ parameters in the VM arguments tab? Http://www.bkjia.com/kf/ware/vc/ "target =" _ blank "class =" keylink "> memory + pgltzybzcm9" http://www.2cto.com/uploadfile/Collfiles/20140310/2014031008445437.jpg "alt =" \ ">
8. Select the Classpath tab, select User Entries, and click the Advanced button on the right.
Select Add Folder
Add src/i18n respectively.
Select Advanced... -> Select Add Folder.
Build/lib/dist OK
Select Advanced... -> Select Add Folder.
Src/resources/jar OK
9. Select the Common tab, check Debug and Run, click apply, and then click run.
10. Successful
11. Enter the address http: // 127.0.0.1: 9090 in the browser.
The rest is the configuration!