Running the sample code The sample code, created in VisualAge for Java, will nevertheless run from the command line, using any Java Development Kit compatible with JDK1.1. To run the sample programs, you'll need: Be sure to put the .jar files containing the sample code, xml4j, and Swing in your CLASSPATH. Then, run any of the demos like this:
$ java com.javaworld.JavaBeans.Nov99.AWTDOMGeneratorDemo
$ java com.javaworld.JavaBeans.Nov99.XMLStringGeneratorDemo
$ java com.javaworld.JavaBeans.Nov99.XMLTokenizerDemo
Keep in mind that the name of this site is alphaWorks, and as such, you can't expect APIs to be entirely stable. The purpose of alphaWorks is to developers to collaborate with IBM on designs, not to simply give away admittedly great software for free. The upside of this arrangement is that you, as a developer, have an opportunity to influence a vendor's products in the design phase. The downside is that APIs sometimes change in subsequent releases, breaking code that worked fine with a previous API. If you like the XML Bean Suite, go to the Discussions page for the project by surfing to http://alphaworks.ibm.com/alphaBeans, selecting the XML Beans link at the bottom of the frame on the left of the page, and selecting Discussions at the top of the resulting page. Then you can encourage IBM to continue to develop this useful toolset, by keeping it synchronized with JFC and xml4j.