About

This page explains how to setup your CCIS accounts to use DAJ.

Setup

In order to be able to use the DAJ compiler and tools from your CCS account you need to first complete the following steps:
  1. Add /proj/demsys/demjava/bin to your PATH environment variable

The following commands are now available on your shell

Testing your Setup

To test your setup for DAJ type the following at your shell prompt:

> dajc

The command should reply with the following:

 
Usage: 
java edu.neu.ccs.demeter.tools.daj.DAJ  
                                       [-ajcopt ]

Source files
  .cd           Class dictionary file
  .trv          Traversal file
  .java         AspectJ file

Options
  -o       Where to place generated files (default is "gen")
  -d       Where to place class files (default is current directory)
  -ajc    Execute an aspect compiler via the shell instead of
                      invoking the AspectJ compiler via the classpath
  -trace              Trace all traversals
  -debug              Output debug info during traversal generation

To compile a class dictionary, write a file my.cd containing
A = String Ident.
and run
dajc *.cd

In the gen directory you will find the code produced for class A.

For information on DAJ in general visit The DAJ Web Page