Running Cougaar
Tutorials Using Eclipse
Install Cougaar
You can download here
Cougaar 11.2 Make sure you set your COUGAAR_INSTALL_PATH and CIP environment variables
Download Tutorials
You can download the Cougaar Tutorials
here. The associated power point slides can be downloaded
here.
Download and Install Cougaar IDE
Download
CougaarIDE here. NOTE: Version 1.2.4.1 is only for Java 1.5.0, use Version 1.2.4 if you are using Java 1.4.2.
Unzip the download into you eclipse base directory.
Import the Tutorials Project Into Eclipse
From the Eclipse Toolbar:
File->New Project
Select Cougaar Project then click next
Click "New Cougaar Installation"
Click "ADD" and then specifiy a name and the location of your CIP
Click "OK". Click "OK" and then click "Next"
Enter "tutorial" for the project name and then select "create project at external location" and specifiy the tutorial directory
where you expanded the Cougaar Tutorials.
Click "Next"
Highlight "tutorial/src" and click "Remove" These are the solutions and you will get "Class already defined execeptions since the packages are exactly the same as the packages in exercises. You will still be able to look at this source. If you would prefer to start with the solutions than remove "tutoroial/exercises" from the source directories list.
Click "Finish"
There will be an "x" mark on the project because all of the classes do not compile out of the box. This is expected.
Running the Exercises With Cougaar IDE
From the Eclipse Toolbar select Run->Run
Double Click on Cougaar (XML)

Enter a name for the run configuration. Click on the Arguments Tab
Enter "Exercise1" for the node Name.
Use the "Browse" button to select Exercise1.xml located in tutorial/configs/exercises/exercise1.
Deselect "Use default working directory" and select the "workspace" button. Browse to tutorial/configs/exercises/exercise1 and select "OK"
Click "apply"
Click "run"
Your console output should look something like: