The jar JDK tool is used to work with Java Archive or JAR files. JAR files are compressed ZIP files and typically contain class, graphic images such as GIF or G3 format, html, and a manifest file. For more information on JAR files, see http://java.sun.com/docs/books/tutorial/jar/index.html.
The Agent Editor loads any classes it can identify as implementing AbleBeans from JAR files. Follow these steps to package your classes and create a FileWatch.jar file which can be read by the Agent Editor:
Manifest-Version: 1.0 Name: com/ibm/able/examples/ablebean/AbleFileWatcher.class Java-Bean: True Name: com/ibm/able/examples/ablebean/AbleFileWatcherNew.class Java-Bean: True
C:\ableWorkDir\able>jar cfmv FileWatch.jar com/ibm/able/examples/ablebean/AbleFileWatcher.man com/ibm/able/examples/ablebean/AbleFileWatcher*.class com/ibm/able/examples/ablebean/AbleFileWatcher*.gif
Note that the file separator "/" is used by the jar JDK tool regardless of platform.
After this jar file has been created, classes that have been flagged in the manifest as being Java Beans can be plugged into the Agent Editor by loading the jar from the Tools menu.