I originally asked for some help on another forum. It appears that none of the existing perl or python XMPP tools work with Openfire. I need to be able to connect to openfire via command line and send messages to people logged in–certain events in UNIX require immediate attention.
The only suggestion I got was to learn to use the Smack API. The documents may be complete for an experienced programmer, but certainly not for someone who has no exposure to Java. There does not appear to be any information on how to compile the (slightly modified) example code:
XMPPConnection connection = new XMPPConnection(“jabber.sav.local”);
Message message = new Message();
message.setBody(“server alert test”);
This code appears to do exactly what I want, but the command “javac -classpath . test.java” generates errors on every line. The jar files are in the same directory as the javac, and other demo java sources compile fine. It is not reasonable for me to become java-competent in one night or even in many days. What do I have to do to compile the java supplied in the documentation?
I will eventually compile this for linux, but right now I just need to prove to myself this is doable. I can’'t seem to get past the first step.