Hi Doug: We need to put a description of all the options of demjava into the resources page. Please can you quickly write one which will then also go into the manual. -- Karl =========================================== description of 197> demjava Usage: demjava [-code] [-grammar] [-printvisitor] [-copyvisitor] [-displayvisitor] [-equalvisitor] [-tracevisitor] [-outputdir dir] [-tie] [-tao] prog.cd [ prog.beh ... ] demjava -version From lblando@gte.com Wed Oct 8 14:34:38 1997 Reply-To: "lblando@gte.com" To: "'lieber@ccs.neu.edu'" Cc: "'alexey@ccs.neu.edu'" Subject: DisplayVisitor not found... hi karl, alexey, i am trying my hand at the homeworks, and i find that while doing: .../average-default/list> demjava statistics i get an error: C:\com3360\hw2\average-default-list>javac -depend -deprecation -J-mx32m -d . gen\*.java gen\Main.java:22: Class DisplayVisitor not found in type declaration. a.universal_trv0(new DisplayVisitor()); ^ 1 error i am guessing this is an 'automatic' visitor that i get from somewhere. the question is then, from where? what am i doing wrong? (i installed demeter, jdk, javacc, and apstudio following the instructions and up to now have had no problems). thanks for your help, luis ------ Luis Blando lblando@gte.com GTE Laboratories 781.466.3296 (v) lblando@ccs.neu.edu 40 Sylvan Rd., MS40 888.960.9451 (p) 1542031@gte.pagegate.net Waltham, MA 02254 781.466.2941 (f) www.ccs.neu.edu/home/lblando From binoy@ccs.neu.edu Wed Oct 8 15:02:16 1997 Most probably your batch file needs to be modified. A UniversalVisitor is created if any of the generic visitors are present. In order to use the generic visitors, you need to use the proper flags for demjava. Usage: demjava [-code] [-grammar] [-printvisitor] [-copyvisitor] [-displayvisitor] [-equalvisitor] [-tracevisitor] [-outputdir dir] [-tie] [-tao] prog.cd [ prog.beh ... ] demjava -version Try modifying your batch file to use one of -printvisitor,... and it should work now. When on the college systems, all the flags are already enable in the GNUMakefile, so you dont notice any problem. -binoy Karl Lieberherr wrote: > > Hi Binoy: > > please can you send them and me your explanation of what might be wrong. > > -- Karl > > >From NBJENSEN@novell.com Wed Oct 8 12:31:20 1997 > >Received: from novell.com (prv-mail20.Provo.Novell.COM [137.65.40.4]) > > by amber.ccs.neu.edu (8.8.6/8.7.3) with SMTP id MAA17856; Wed, 8 Oct 1997 12:31:18 -0400 (EDT) > >Received: from INET-PRV-Message_Server by novell.com > > with Novell_GroupWise; Wed, 08 Oct 1997 10:11:14 -0600 > >Message-Id: > >X-Mailer: Novell GroupWise 4.1 > >Date: Wed, 08 Oct 1997 10:10:45 -0600 > >From: Nathan Jensen > >To: COM3360-grader@ccs.neu.edu, Liebeherr@ccs.neu.edu > >Subject: Error with Demjava > >Mime-Version: 1.0 > >Content-Type: text/plain > >Content-Disposition: inline > >Status: R > > > >Hi, > > > >Can someone help me on this. I keep getting an error with Demjava: > > > >Error: no such visistor class "UniversalVisitor" > > > >when I run the test under Demjava. I have my classpath set to > >\\Demjava\classes and have tried to add aditional classpaths. > > > >This error happens on my Win95 and Winnt machines. > > > >Thanks > >Nate > > > > -- ________________________________________________________________________ Binoy Samuel Northeastern University 38 Westwind Road #107 College of Computer Science Dorchester MA- 02125 email: binoy@ccs.neu.edu Ph - 617.287.0127 (h) Ph - 617.373.7921 (o) URL - http://www.ccs.neu.edu/home/binoy/ ________________________________________________________________________ There cannot be a crisis next week. My schedule is already full. - Henry Kissinger From binoy@ccs.neu.edu Wed Oct 8 15:25:48 1997 Date: Wed, 08 Oct 1997 15:25:44 -0400 From: Binoy Samuel To: Nathan Jensen CC: lieber@ccs.neu.edu, com3360-grader@ccs.neu.edu, kedar@ccs.neu.edu Subject: Re: UniversalVisitor Nathan Jensen wrote: > > I added -printVisitor to the bat file and it worked thank you. > > Do I need to add all the flags to the batch file? > > Thanks again, > Nathan Jensen Not necessary. But if you want to save yourself the trouble of having to modify the batch file each time, just go ahead and add all the flags. (Note, each flag adds a class/java file. So if you are concerned with space,Just add the flags as and when required ). -- binoy