Spark is a good Jabber Client. It is from the same place as openfire. It can be said that it is a set of powerful instant messaging software with openfire, especially it is free and open-source, you can create your own client. the following describes how to use eclipse to debug spark, also from ignite realtime.Community.
Spark SVN + eclipse 3.3 + subversive Installation Guide
Version 3 published
Created on: Aug 23,200 7 pm by aznidin-Last modified: Aug 27,200 7 pm by aznidin
This Guide assumes that you are installing everything from scratch. if you 've done some parts of them, this Guide may still be useful. I compile this guide to the best of my knowledge. I apologize if it doesn' t work for you.
Notes:
This Guide assumes that you want the latest updates of the source I. e. from the project's trunk directory. if you only want the released/stable version, checkout the desired release from under the tags directory.
--------------------------------------------------------------------------------
Install JDK
Download JDK and install them. The least version shocould be 1.5. I use 1.6. Sorry, no instruction for this.
Install eclipse 3.3
Download eclipse 3.3 From http://www.eclipse.org/. I use Eclipse IDE for Java EE developers. You shoshould at least use Eclipse IDE for Java developers.
Extract the downloaded ZIP file into C:/program files/eclipse.
Open C:/program files/eclipse folder.
Right click and drag eclipse.exe on to your desktop (or Windows taskbar) to create a shortcut cut icon.
Right click the shortcut cut icon and choose properties. The eclipse Properties window will show.
The target textbox shoshould read something like this "C: \ Program Files \ eclipse \ eclipse.exe"-VM "C: \ Program Files \ Java \ jdk1.6.0 \ bin \ javaw "depending on the JDK that you use and where you installed it.
Close the eclipse Properties window.
Install subversive plugin
Double-click the shortcut icon to start eclipse.
Select/enter your preferred workspace and click OK to open eclipse main ide window.
Click on the workbench icon to close the welcome screen.
Click Help: Software Updates: Find and install... menu.
Click on search for new features to install and click Next.
Click on new remote site... button.
Enter subversive in the Name box and http://www.polarion.org/projects/subversive/download/1.1/update-site in the URL box (check the latest URL from http://www.eclipse.org/subversive website), then click OK.
Click Finish to install subversive. eclipse will search for the update site and show the result in a next window where you will select the features to install. I choose everything under Subversive SVN team provider plugin and subversive client libraries.
Click Next to continue and so on until the installation ends. You normally want to restart eclipse when the installation ends.
Check out spark SVN
Click windows: open perspective: Other... menu.
Click on SVN repository refreshing ing on the open perspective window and click OK.
Right-click on SVN repositories screen and choose new: Repository location...
On New repository location enter http://svn.igniterealtime.org/svn/repos in the URL box and click Finish. You'll see the URL location in the svn repositories screen.
Expand the URL location.
Expand the spark tree.
Right-click on trunk and choose check out. Make yourself some mocha while waiting for the checkout to complete.
Create Spark Project
Click window: open perspective: Java menu.
In the project explorer screen, if there is a spark project, delete it. This project was created during the spark check out process. Yes you read it correctly, delete the project !!! Otherwise you'll have to setup your spark Development Environment manually. On the confirm project Delete choose do not Delete contents, then click yes.
Click file: New: Project... notice the ellipses !!!
Select Java: Java project and click Next.
On the New Java project window choose Create project from existing source and browse to where spark folder is located under your workspace.
In the Project Name box enter exactly as spark. otherwise, the next and finish button remain disabled. click on next. eclipse will read the directory structure to setup the environment automatically (almost) for you and you can see what it does on the next screen. then click on finish.
If the open associated perspective windows opens, click yes.
Build spark
Click window: Show view: ant menu.
Right-click the ant screen and choose add buildfiles...
Expand the spark: Build folder and select build. XML, then click OK.
On the ant screen, expand the spark and double-click on release ant task. the build may fail because you're checking out the daily updates of spark sources, which may contain bugs. if so, wait for another day and hope that the developers discover and fix the bug; or you might dare to fix it yourself. during this first time setup, a successful build is necessary before you can proceed with the remaining tasks below.
Create Project Builder
Click Run: Open Run dialog... or run: Open debug dialog... menu. A run window shows.
Select Java application and click on the new button.
On the main Tab Of The Run window, change the new_configuration name to spark or anything you like.
Click on Project: browse button and select spark and click OK.
Click on main class: Search button and select Startup-org. jivesoftware. launcher and click OK.
I 'd suggest that you select stop in main check box so that you cocould later verify that debugging works.
Click on classpath tab.
Select User entries so that the advanced... button will be enabled.
Click on the advanced... button.
On the advanced options window select Add folders and click OK.
On the folder selection window select spark: SRC: Resources folder and click OK.
Click on common tab.
Select the debug and run check box.
Click on Apply button.
Click on close button.