Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse Workbench User Guide
Previous Page Home Next Page

Modifying the Ant classpath

When using an optional or custom task it is usually necessary to add extra libraries to the classpath. The Ant classpath can be modified globally or per launch configuration.

To modify the Ant classpath globally:

  1. Open the Ant > Runtime preference page.
  2. 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.

To modify the Ant classpath for a launch configuration:

  1. Click Run > External Tools > External Tools... .
  2. Select the Ant configuration whose classpath you wish to modify
  3. Select the Classpath tab
  4. To add a JAR file to the classpath, click Add Jar and select the JAR file.
  5. To add a folder to the classpath, click Add Folder and select the folder.
  6. To remove an item from the classpath, select it and click Remove.

Related concepts
Ant support
External tools

Related tasks
Running Ant buildfiles
Running external tools


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire