Overview of the Shape Tools download package libraries

The ShapeTools software divides into applications and libraries. Because not all applications require all library capabilities, the library code is separated according to it's function. It is hoped that, by this separation, each application need include only the library functions it requires.

If you prefer to link to a single library then the ShapeTools.jar library may be useful:

Using the single ShapeTools library, a typical java compile command would look like this,

javac -classpath .:ShapeTools.jar MyClass.java

Or, with multiple libraries (for example, if your application needs only the ShapeToolsApps and ShapeToolsCore libraries):

javac -classpath .:ShapeToolsApps.jar:ShapeToolsCore.jar MyClass.java

The MyClass source code might look like this:

import edu.ucla.loni.ccb.shape.About;

/**
 * A simple class illustrating the use of the ShapeTools library.
*/
public class MyClass
   {
    public static void main(String [] args)
      {
         System.out.println("Hello ShapeTools World.");
         System.out.println("ShapeTools Version:" + About.version());
      }
  }

The above program would then be run via;

java -classpath .:ShapeTools.jar MyClass

and produces this output:

Hello ShapeTools World.
ShapeTools Version:1.3.5