Modifying the Ant classpath

When using an optional or custom task it is usually necessary to add extra libraries to the classpath. To modify the Ant classpath in the Workbench:

  1. Click Window > Preferences.
  2. Expand External tools and select Ant. If you are not on it already, click the Classpath tab.
  3. To add a JAR file to the classpath, click Add Jar and select the JAR file.
  4. To add a folder to the classpath, click Add Folder and select the folder.
  5. To remove an item from the classpath, select it and click Remove.
  6. To restore the classpath to the default, click Restore Defaults.

Related concepts
Ant support
External tools

Related tasks
Running Ant build files
Running external tools

 
Copyright IBM Corporation and others 2000, 2002