I am trying to run a Java program from my Terminal. I have Mac OS X 10.7.
teamL javac -jar kxml2-2.3.0.jar XMLHandler.java ServiceEndpoint.java TeamL.
Have you added that jar to the classpath when you execute the program on the command line? e.g.
java -classpath location_of_jar ...