Openfire3.8.2 the easiest way to start the debug mode in eclipse

Source: Internet
Author: User

First, preface

Recently intends to study the openfire, so it is best to debug to start the OpenFire server, to the Internet a search, and indeed early to an article on the official website:

http://community.igniterealtime.org/docs/DOC-1020

Online a lot of friends follow this tutorial to build, and some say the article has flaws in the place, let not say flaws, this very long step is disgusting. Originally I want to follow this tutorial to do, but, single use eclpse svn download crash, always show progress is 0%, later changed TORTOISESVN better, downloaded two times, each time spent a few hours, the first time down to 35MB can not download, the last download failed, The second download was in the evening, better, the last download succeeded, but the speed was very slow full download 4, 5 hours (is not our evening when the Americans are working, this time they will make the server more stable?) :))

Not to blame the official website cheese Why not the project into MAVEN management, because search the forum, has found a reply: http://community.igniterealtime.org/message/228657# 228657, it seems that the complaint about Maven, Cheese also noticed, then let us wait patiently!

However, laozaoping to laozaoping, things still to be done, and after several attempts, I first downloaded a window version of the installation, and tried the next server installation process. When the following message is displayed, the installation is successful.

Java code
    1. openfire 3.8. 2 [jul 28, 2013 4:44:26 PM]  
    2. admin console listening at http://127.0.0.1:9090   



can be accessed through the browser http://127.0.0.1:9090 this address, it is a configuration wizard, is simple, you can choose the Chinese language, the only thing to say is that the installation needs to specify a database, you can connect a MySQL database, Of course you do not have to install the database and use the default options (an embedded database), I would recommend you install a real database, because with my personal knowledge of the embedded database, performance is generally low, debug process to view database data is not convenient!

If you want to know OpenFire's design, this article is good: http://www.bitiliu.com/archives/143

ii. configuration steps

Note: The configuration process requires eclipse, ant, and it is recommended that you use the Eclipse Java EE version with Ant. You can go to the Eclipse website to download this Java EE version, fast, with Beijing mirror.

1, download openfire_src_3_8_2.zip to Local disk



2, unzip openfire_src_3_8_2.zip to your current Eclipse workspace directory



3, start Eclipse, and create a Java Project named "Openfire_src". Note: Be sure to extract the same source folder name as workspace, after the establishment, the source folder changes as follows:



4, this time the Eclipse view is as follows, only the Src/java is preserved, the other from the build path removed, Add scr/i18n, Src/resources/jar directory to the source path





5, direct execution build.xml to compile, compile successfully, will be new output work, target two directory





6, create a new Run configuration, and configure the VM parameters as shown in





7, Execute the Org.jivesoftware.openfire.starter.ServerStarter class



8 using the configuration Bebug you just configured, and you're done with the following information!



Add a point:

Reprinted from http://redhacker.iteye.com/blog/1914619

Related Article

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.