Table of Contents

Installing additional JAR files in Eclipse

I setup a directory on my local file system and copy these .jar files there:

D:\jar

Command Line Ant

Next you need to modify your path to include this directory so Ant (command line) can find these files. These instructions for for Windows XP.

  1. Click Start > Settings > Control Panel > System
  2. Select the “Advanced” Tab
  3. Click “Environment Variables”
  4. Under “System Variables” scroll down until you see the PATH variable
  5. Highlight that and click “Edit”
  6. Scroll to the end of the “Variable Value” and add the path you copied the .jar files to
Example:
C:\CFusionMX7\runtime\jre\bin;%ANT_HOME%\bin;D:\jar

Click OK 3 times to close that dialog

Eclipse

  1. Window > Preferences
  2. Expand Ant
  3. Click Runtime
  4. Select the Classpath tab
  5. Expand the “Ant Home Entries (Default)
  6. Click “Add External JARS…”
  7. Navigate to your /jar directory and select all the .jar files there
  8. Click “Open”
  9. Click “Apply”, then “OK”

Now you should be able to use the example scripts, either via the command line or within Eclipse.