How to use Demeter/Java
=======================

Tool is under construction, use at your own risk.

Background information:

The AP book:
   http://www.ccs.neu.edu/research/demeter/biblio/dem-book.html

Using book for Java programming:
   http://www.ccs.neu.edu/research/demeter/course/f96/APbookWithDemJava.html

Switching from Demeter/C++ to Demeter/Java:
    http://www.ccs.neu.edu/research/demeter/course/f96/demjava/FromDemC++ToDemJava.html

Java CUP parser generator from Georgia Tech
    http://www.cc.gatech.edu/gvu/people/Faculty/hudson/java_cup/home.html

set-up your computing environment:

set path = ( $path /proj/demsys/demjava/bin )

setenv CLASSPATH .:/proj/demsys/demjava/classes:/share/unix/packages/guavac/lib/

Don't forget to use the source command.

Go to a directory where you would like to generate Java code.

Create Makefile

	j-gen-make

Create a class dictionary file "program.cd", with a class called "Main".

Create an adaptive behavior file "program.beh", with a method
"public static void main(String args[])" attached to class "Main".

Create a test input file "program.input".

Generate and compile and run with:

	make test

You can change "program" and "Main" to be whatever you want by editing
the Makefile.

The demjava interface will change quite a bit in the near
future to be more flexible (e.g. to support packages).