Re: Part D


Subject: Re: Part D
From: Pengcheng Wu (wupc@ccs.neu.edu)
Date: Thu Oct 03 2002 - 16:52:20 EDT


Does the .prj file that you are using use the jikes compiler? You can
check that by searching "jikes" in your .prj file, if it is there, change
it to "javac", and run demeterj test again.

--Pengcheng Wu

On Thu, 3 Oct 2002, Matt Mastrangelo wrote:

> I followed your instructions. When I type demeterj test, I get the
> following:
>
> Parser generated successfully.
> Running the compiler...
> gen/Example.java:0:0:0:0: Error: Could not find package named:
> gen/classes/java/lang,
> gen/java/lang,
> /proj/demsys/demeterj/cur/rt.jar(java/lang),
> /proj/demsys/demeterj/cur/demeterj.jar(java/lang),
> /proj/demsys/demeterj/cur/apstudio.jar(java/lang),
> ./java/lang or
> /proj/demsys/demjava/rt.jar(java/lang)
> Running the test...
> Exception in thread "main" java.lang.NoClassDefFoundError: Main
>
> My classpath seems to be fine:
>
> [denali: ~/com1205/binary-tree] > echo $CLASSPATH
> .:/proj/demsys/demjava/rt.jar
>
> I'm not sure what the problem is.
>
> Thanks,
>
> Matt
>
> ----- Original Message -----
> From: "Pengcheng Wu" <wupc@ccs.neu.edu>
> To: "Matt Mastrangelo" <mmast@ccs.neu.edu>
> Cc: <com1205@ccs.neu.edu>
> Sent: Thursday, October 03, 2002 12:12 PM
> Subject: Re: Part D
>
>
> > You just copy the .cd,.beh,.prj and .input files from the course directory
> > to you own directory, say ./Tree/, under which you just type:
> >
> > demeterj test
> >
> > It then will generate the code, compile the code and run it automatically
> > with .input file as input.
> >
> > Make sure you have different directories for Tree and Graph examples.
> >
> > --Pengcheng Wu
> >
> > On Thu, 3 Oct 2002, Matt Mastrangelo wrote:
> >
> > > Are we supposed to compile the java code in the /gen directory, or
> should we
> > > first generate the code using demeterj?
> > >
> > > Also, do we need to pass the .input files as arguments when we execute
> the
> > > programs?
> > >
> > > Thanks,
> > >
> > > Matt
> > > ----- Original Message -----
> > > From: "Pengcheng Wu" <wupc@ccs.neu.edu>
> > > To: "Anthony Ventresca" <ventre23@ccs.neu.edu>
> > > Cc: <com1205@ccs.neu.edu>
> > > Sent: Thursday, October 03, 2002 8:29 AM
> > > Subject: Re: Part D
> > >
> > >
> > > > No, you should use
> > > >
> > > > demeterj test
> > > >
> > > > to compile and run it.
> > > >
> > > > --Pengcheng Wu
> > > >
> > > > On Thu, 3 Oct 2002, Anthony Ventresca wrote:
> > > >
> > > > >
> > > > > I have followed the instructions by modifying my .software file.
> Then i
> > > > > try to run the file tree.cd When i do that demeterj starts and it
> does
> > > > > some compiling, but then it says "Error Generating Code...Aborting".
> > > > >
> > > > > I use the command demeterj tree.cd to compile the file, I think that
> is
> > > > > the right command. I am not sure if my .software file is incorrect,
> but
> > > I
> > > > > did follow the exact instructions on the web site.
> > > > >
> > > > > Anthony Ventresca
> > > > > Northeastern University
> > > > > College of Computer Science
> > > > > ventre23@ccs.neu.edu
> > > > >
> > > > > On Thu, 3 Oct 2002, Pengcheng Wu wrote:
> > > > >
> > > > > > Can you descripe what you have done in more details?
> > > > > >
> > > > > > --Pengcheng Wu
> > > > > >
> > > > > > On Wed, 2 Oct 2002, Anthony Ventresca wrote:
> > > > > >
> > > > > > >
> > > > > > > When i try to compile tree.cd by typing the command demeterj
> tree.cd
> > > it
> > > > > > > says that there were errors generating the code and it aborts. I
> did
> > > add
> > > > > > > that file to my .software file, but it still gives me that
> error. Do
> > > you
> > > > > > > know what the problem is?
> > > > > > >
> > > > > > > Anthony Ventresca
> > > > > > > Northeastern University
> > > > > > > College of Computer Science
> > > > > > > ventre23@ccs.neu.edu
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>



This archive was generated by hypermail 2b28 : Thu Oct 03 2002 - 16:52:24 EDT