MASON-INTEREST-L Archives

March 2004

MASON-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Sean Luke <[log in to unmask]>
Reply To:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Date:
Wed, 31 Mar 2004 16:55:05 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (33 lines)
On Mar 31, 2004, at 2:52 PM, Xun Jiang wrote:

> I just downloaded mason (version 3) and I am trying to read mason
> tutorial2
> when I encounter two problems:
>
> 1. Tutorial2 has a run-time error (on WIndows2000 with java1.4.1):
>
> java.lang.IllegalAccessError: tried to access method
> java.lang.Object.clone
> ()Ljava/lang/Object; from class sim.field.grid.IntGrid2D
> ......

There's got to be something wrong with the JVM here: it's standard
procedure to be able to clone arrays.  You might try recompiling the
code first using your VM's JDK and see what happens.

I can say that we run successfully on 2000 and XP without any problems
(as well as OS X and Linux).

Can anyone else verify this problem?

> 2. Controller (in sim/display) is defined as an interface, but in
> Tutorial2
> source code, it is used as a class (The mason diagram shows it as a
> concrete class). Why?

Documentation error in the diagram, I think.  It's an interface.
However Tutorial2 does *not* use it as a class.  It uses it as an
interface.  You can always cast things into interfaces, no problem.

Sean

ATOM RSS1 RSS2