(Instructions for using the Northeastern CCIS installation are here.)
To install DJ and the AP Library without installing DemeterJ,
simply download the rt.jar
file and put it in your class path (do not unpack the jar file).
This file is also included in DemeterJ. For more information
about using the class path in Java,
check out the
SDK tools documentation for
Solaris and Linux
or Windows.
java -cp . JavaCC
version
where the class file you downloaded is named
JavaCC
version.class
.
demeterj-
version.jar
file from
the ftp directory.
jar
tool
(available in the SDK)
using the command
(You can also use any unzip tool, such as Winzip.) The resulting directory (referred to below as installdir) contains the runtime library (jar xvf demeterj-
version.jar
rt.jar
) and the tools library
(demeterj.jar
), as well as scripts in the
bin
directory and source code in the
src
directory.
Note: the src
directory contains the
source code to the Demeter software; it is provided only for
your curiosity. You don't need to compile anything to run it;
the .jar
files have all the bytecode files you
need.
bin
directory
to your executable path:
setenv PATH
installdir/bin:$PATH
PATH=
installdir/bin:$PATH; export PATH
PATH "
installdir/bin;%PATH%"
chmod a+x bin/demeterj
.)bin
so that
it sets the environment variable
DEMETERJ_HOME
to installdir.
In Unix, you can just set DEMETERJ_HOME
in your own
environment if you don't want to edit the script.
java -version
(should be 1.4 or later)
javac -J-version
(should be 1.4 or later)
javacc -version
(should be 2.1 or later)
demeterj -version
(should be 0.8.6 or later)
demeterj new
.
This will create the project file, program.prj
, as
well as sample class dictionary, behavior, and test input
files, program.cd
, program.beh
, and
program.input
, respectively.
demeterj test
. This
should compile and run the test program; if successful, it
will print "It works!" at the end.demeterj -eofbug test
.
It should continue where it left off. We're working on a
better solution to this problem.