Installing the MacroRunner Project
To install the MacroRunner and MacroRunnerRunnable sample Java macro plug-ins, follow these steps:
- 1. Download MacroRunnerProjects.tar.gz (available electronically; see "Resource Center," page 5).
- 2. Unzip and untar with your favorite utility or using GNU tar (or compatible) by issuing the following (or similar) command: tar -zxf MacroRunnerProjects.tar.gz.
- 3. In Eclipse, select File...Import from the main menu. When prompted, select "existing Project into Workspace" and click Next. At the next screen, browse to the extracted MacroRunner directory and click Finish to import the project. Repeat this step for the MacroRunnerRunnable directory.
- 5. Both the MacroRunner and MacroRunnerRunnable projects should now be imported into your Eclipse workspace. To run the code, create and execute a runtime workbench configuration through the Eclipse Run... Run... menu entry (accepting all defaults for a new runtime workbench configuration).
- 6. When the runtime workbench comes up, if you cannot see the MacroRunner menu entry, then select Window...Customize Perspective...Other...
- 7. Ensure that the MacroRunner Demo list entry is checked before clicking OK to accept.
- 8. To execute the MacroRunner demo code, click the MacroRunner menu entry.
- 9. In the resulting file selection dialog, browse to the macro class you wish to to run (samples are provided in the MacroRunnerRunnable plug-in bin directory), and click OK. Check the console output for any error messages if your macro does not run successfully.
References
ClassLoader API spec (http://java.sun.com/j2se/1.4.2/docs/api/java/lang/ClassLoader.html).
URLClassLoader API spec (http://java.sun.com/j2se/1.4.2/docs/api/java/net/ URLClassLoader.html).
URL definition (http://www.ietf.org/rfc/rfc2396.txt).
URLClassLoader API spec (http://java.sun.com/j2se/1.4.2/docs/api/java/net/ URLClassLoader.html).
G.B.