[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Excuse me,can you help me?
From: |
pauljohn |
Subject: |
Re: Excuse me,can you help me? |
Date: |
Thu, 14 Jun 2001 08:56:57 -0500 |
qiangzhen wrote:
> ActionForEach actionForEach;
> Selector sel =
> new Selector (Class.forName ("AkerlofCar"), "step", false);
> actionForEach =
> modelActions.createActionForEach$message (CarsList, sel);
> //step () is one method which belongs to the Class AkerlofCar
>
> when i compile it , it is right. but when i run it, it will tell me:Could
> not find Java method 'step'.
> i really don't know how i should do to deal with it. i really appreciate your
> help.
Let me take a wild guess. If you are using a new Swarm snapshot, one
since the 2.1.1 release, this could happen if your class of Car is
inherited from SwarmObject and your step method does not have the same
signature as the step method of the Swarm edition you have. In the
newest Swarm, step returns a void, not an object.
You can avoid little hassles like that by renaming your method "step" to
something unique.
--
Paul E. Johnson email: address@hidden
Dept. of Political Science http://lark.cc.ukans.edu/~pauljohn
University of Kansas Office: (785) 864-9086
Lawrence, Kansas 66045 FAX: (785) 864-5700
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.
- swarm rpm for RH7.1, Myriam Abramson, 2001/06/13
- Re: swarm rpm for RH7.1, Paul E Johnson, 2001/06/13
- Re: swarm rpm for RH7.1, Myriam Abramson, 2001/06/13
- Re: swarm rpm for RH7.1, Marcus G. Daniels, 2001/06/13
- Excuse me,can you help me?, qiangzhen, 2001/06/13
- Re: Excuse me,can you help me?,
pauljohn <=
- Re: Excuse me,can you help me?, Marcus G. Daniels, 2001/06/14
- The supplement for the last letter!, qiangzhen, 2001/06/13