Using Eclipse

For those of you who are using Eclipse, here is a quick guide to getting JAR libraries working with your project. You should have downloaded a JAR file for AMS from the Source link on the CMS website - don't try to decompress or expand it.

Creating a New Project

  1. In Eclipse, go to FileNewProject. Select Java Project.
  2. Fill in the project name and location, etc, and click Next.
  3. Four tabs should appear on the next page - Source, Projects, Libraries, and Order and Export. Go to the Libraries tab
  4. In there, click the Add External JARs button. Locate the JAR file you downloaded and add it.
  5. Finish creating the project, and then write your code.

Adding Libraries to an Existing Project

  1. Go to either the Navigator or Package Explorer pane. If you don't see either of those views, go to the Windowmenu, Show View, and select either Navigator or Package Explorer.
  2. Right click on the project you want to add libraries to. Select Properties.
  3. In the window that pops up, select Java Build Path from the left hand side.
  4. Follow steps 3-4 from Creating a New Project, above
  5. Click OK to close the window

Now your project should have access to the SaM packages and classes and should compile correctly.