Intellij idea 13: Import openfire source code

Source: Internet
Author: User

There is already an article on the network about importing openfire to intellij idea (http://www.th7.cn/Program/java/201404/187018.shtml), but in the process of importing, I feel it can be simplified, so recompile the following code (Java SDK has been installed in advance, and sdk1.7 is used here ):

1. Open intellij idea and select import Project

2. Select the directory where the openfire source code is located

3. Select Create Project

4. enter the project name (the name is random. Note that if you change the project name, the following points to the directory will change accordingly. Remember to change it back). Here we choose not to change or openfire_src.

5. Next to finish.

 

6. After a moment, the idea main interface is displayed. As you can see, the initial project is in the compilation error state.

7. this is because a Rayo plug-in under the Plugins directory uses the tinder class library, while openfire also uses this class library, but Rayo's class library version is relatively old, the project uses the old class library. The simplest solution is to delete Rayo...

You also need to delete the following four plug-ins:

8. Re-compile, and this time it should be successful.

 

9. Then we will start to configure ant. Open the ant window and click +.

10. Select the build. xml file in the build directory under openfire source code.

This interface is displayed when you select OK.

11. You don't have to worry about running it. We still need to complete the configuration step. For example, select Edit configurations...

12. Select application and change the openfirehome pointing path to the corresponding source code path, as shown in the configuration.

13. now, you can run the ant command. After ant-> Run is complete, enter localhost: 9090 in the browser. The following page indicates that the import is complete, next, you can play with openfire at will.

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.