http://www.ccs.neu.edu/research/demeter/sources/DemeterJava/platforms/unix/installation-guide Demeter/Java in Java under Unix is now available. SEE NOTE AT THE END See: http://www.ccs.neu.edu/home/lieber/Demeter-and-Java.html for information on Demeter/Java. Please send bug reports to demeter@ccs.neu.edu Demeter/Java Unix installation instructions -------------------------------------------- Copy from directory: http://www.ccs.neu.edu/research/demeter/sources/DemeterJava/inJava/src/ the file of the form: demjava-*.tar.gz (contains source and compiled code) and the file of the form: announce-* The star represents the version number. Next you unpack the compressed tar file with: gunzip demjava-*.tar.gz tar -xf demjava-*.tar This will create directories classes/ src/ /bin (NOTE: currently /bin is not included. It has to be taken from: /proj/demsys/demjava/bin/new ) which contain Java byte code and the source code and the Demeter/Java commands, respectively. Next you set your path to include the /bin directory above, for example: set path = ( $path /proj/demsys/demjava/bin ) Next you set your CLASSPATH to include the /classes directory above, for example: setenv CLASSPATH .:/proj/demsys/demjava/classes Run source ~/.tcshrc or whatever your shell initialization file is. You have already completed your installation. --------- The above installation instructions assume that you have a Java compiler on your system called javac and all the packages provided with Java (http://www.javasoft.com/doc/) and that you have the Java Compiler Compiler installed with name jack (http://www.suntest.com/Jack/). If you want to use different names, you have to update the GNUmakefile created by j-gen-make. It is assumed that the Java Compiler Compiler is in your CLASSPATH. --------- To test the installation, go to /src/test/ and type j-gen-make // creates the GNUmakefile make test // generates Java code and compiles and runs it This should produce an output like: CLASSPATH=../../classes demjava -code -outputdir ./gen foo Parsing foo.cd... Building hashtable of classes... Expanding parameterized classes... Converting repetition classes... Filling in part names... Setting inheritance links... Parsing foo.beh... Gathering methods... Expanding traversals... ... demeter.test.foo.Nonempty_Bar_List@ef64e098 demeter.test.foo.Bar@ef64e0b8 demeter.test.foo.Bar@ef64e0b8 demeter.test.foo.End@ef64e0d8 Next you can gain experience with adaptive programming by running the examples in http://www.ccs.neu.edu/research/demeter/sources/DemeterJava/examples or doing the exercises in: http://www.ccs.neu.edu/research/demeter/course/w97-ug/hw Information on installing Demeter/Java on other platforms is in: http://www.ccs.neu.edu/research/demeter/sources/DemeterJava/platforms COPYRIGHT (C) 1989-1997 Northeastern University The tools may be used for free, even for commercial applications. The details are in: http://www.ccs.neu.edu/research/demeter/sources/DemeterJava/NUDCopyright.html Current workaround needed: From csaia@yakko.wtower.com Thu Feb 27 20:47:53 1997 Received: from yakko.wtower.com (csaia@yakko.wtower.com [198.115.179.70]) by amber.ccs.neu.edu (8.8.4/8.7.3) with ESMTP id UAA01155; Thu, 27 Feb 1997 20:47:49 -0500 (EST) Received: (from csaia@localhost) by yakko.wtower.com (8.8.5/8.8.5) id UAA03960; Thu, 27 Feb 1997 20:47:47 -0500 From: Chris Saia Message-Id: <199702280147.UAA03960@yakko.wtower.com> Subject: DemJava 0.4.3 for Linux To: lieber@ccs.neu.edu Date: Thu, 27 Feb 1997 20:47:46 -0500 (EST) Cc: johan@ccs.neu.edu, dougo@ccs.neu.edu X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Status: R Just a few notes (beyond the helpful installation-guide) on installing Demeter/Java 0.4.3 on a Linux system; these notes possibly hold true for other unices as well. The demjava-0.4.3.tar.gz that's available _right_now_ seems to be missing a few class files which prevent the installation test from completing. It might be a good idea just to tarball /proj/demsys/demjava/0.4.3/classes and install this OVER the classes dir created by demjava-0.4.3.tar.gz. I've discussed the missing classes with Johan and this was his recommendation... I'm trusting that this will be updated in the demjava-0.4.3 tarball currently available at some point. Also, the installation-guide refers to downloading the Java Compiler Compiler known as jack. The Java Compiler Compiler is now called JavaCC and is at version 0.6(Beta). Once JavaCC has been installed (per the instructions given when downloading JavaCC), it is necessary to change the PARSEGEN entry in _all_ the makefiles and makefile templates to point to javacc instead of jack... there is no need to change the extension .jack; it works just fine. (I guess if people have Jack 0.5, all of this is null and void, anyway.) If all the instructions in the installation-guide are followed plus these notes here, DemJava 0.4.3 installs and runs properly (even arguably faster, depending on the system CPU speed) on Linux and other unices. I've been able to successfully recompile my projects on my own system as a test. Bon Appetit. =C= -- csaia@yakko.wtower.com, WTnet IRC Administrator -- http://www.wtower.com/~csaia PGP Public Key is available @ ftp://yakko.wtower.com/pub/users/csaia/pubkey.asc | A! JW223 YK+++!/+++^/+++"/+++'/ir WK+ DT+ PI+ BR++^ MM++ PFeather XSire P+ | | I++++ Dswiad $+++dap{c} Vrm{jt} T212/Pinky E77 EeH5 EeeH2 H17 Ay75 M |