Hi hrothgar,
Below are two different routes you can take. I tried to keep the directions somewhat generic since I wasn’‘t sure what platform you’'re using.
Basic Tools
Step 1:
url=http://java.sun.com/j2se/index.jspDownload[/url] and url=http://java.sun.com/docs/books/tutorial/getStarted/cupojava/index.htmlinstall[/url] the J2SE 5.0. Note, that the install guide I linked to is for 1.4.2 but it works just as well for 1.5/5.0.
Step 2:
url=http://ant.apache.org/bindownload.cgiDownload[/url] and url=http://ant.apache.org/manual/installlist.htmlinstall[/url] Ant.
Step 3:
url=http://www.jivesoftware.org/source.jspDownload[/url] or check out from cvs the Messenger source.
Step 4:
Open up a command prompt and navigate to build directory in whatever directory you have the Messenger source in. Type ‘‘ant’’ and assuming that you installed the jdk and ant properly you’'ll get a full build of Messenger. There are various targets within the ant build script that you can specify by typing '‘ant ‘’, typically you’'ll just stick to using ‘‘ant jar’’ and ‘‘ant plugins’’.
Eclipse
Step 1:
url=http://java.sun.com/j2se/index.jspDownload[/url] and url=http://java.sun.com/docs/books/tutorial/getStarted/cupojava/index.htmlinstall[/url] the J2SE 5.0. Note, that the install guide I linked to is for 1.4.2 but they work just as well for 1.5/5.0.
Step 2:
url=http://www.jivesoftware.org/source.jspDownload[/url] or check out from cvs the Messenger source.
Step 3:
Download the latest url=http://download.eclipse.org/downloads/drops/S-3.1M5a-200502191500/index.phpversion[/url] of Eclipse and extract it. (Eclipse 3.1x is still in beta but it has support for J2SE 5.0 and is generally very stable)
Step 4:
a. Start up Eclipse.
b. Dismiss the Welcome screen by clicking on the arrow in the upper right hand corner.
c. Go to Window -> Open Perspective -> Java
d. Go to Window -> Show View -> Ant
e. Go to Window -> Show View -> Package Explorer (this may be open by default, I can’'t remember)
f. In the Package Explorer window right-click, select New -> Project. Make sure the Java Project option is selected and click on the “Next” button. Enter a name in the project name field and then click on the “Create project at external location” radio button, use the “Browse” button to point Eclipse to the directory you extracted the Messenger source to, then click on the “Next” button. If all goes well (fingers crossed ), Eclipse will figure out all the libraries that Messenger needs as well as where all the various .java files are stored, click on the “Finish” button.
g. In the Ant window right-click, select Add Buildfile, and then in the dialog that appears expand the tree to show the build directory, when you do that you should see the build.xml file double-click on it and the dialog will go away.
h. Now, in the Ant window you can expand the “Messenger XMPP Server” entry and see all the various targets. To run any of the targets simply double-click on it.
I’'ve probably left out a thing or two, so if you have any question please let me know.
Hope that helps,
Ryan