MASON-INTEREST-L Archives

August 2007

MASON-INTEREST-L@LISTSERV.GMU.EDU

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

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

Print Reply
Sender:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Date:
Thu, 9 Aug 2007 15:25:31 -0400
Reply-To:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Content-Transfer-Encoding:
7bit
Subject:
From:
Felimon Gayanilo <[log in to unmask]>
Content-Type:
text/plain; charset="us-ascii"
In-Reply-To:
MIME-Version:
1.0
Comments:
Parts/Attachments:
text/plain (58 lines)
Yes, there is a conflict with the introduction of java.io.console but you do
not have to go back to Java 5...always go forward. What you can do is to
implicitly import the console by adding the following in your header in the
PropertyInspector.java (or wherever there is a conflict):

	import sim.display.Console;

I hope that resolves the problem.

_____________________
FELIMON C. GAYANILO
NCORE, RSMAS-Univ. of Miami

-----Original Message-----
From: MASON Multiagent Simulation Toolkit
[mailto:[log in to unmask]] On Behalf Of Sean Luke
Sent: Thursday, August 09, 2007 1:29 PM
To: [log in to unmask]
Subject: Re: the compile error causing by "Console"

If you're seeing 'console' errors, then you must be using Java 6, not  
Java 5.

In their wisdom, Sun created a class called "Console" in java.io.   
We'll have to resolve the ambiguity by referring to Console in  
Display3D and Display2D etc. using 'mason.sim.display.Console'  
instead of 'Console'.  Sadly, we're on Macs and don't have JDK 1.6;  
but you can do this by hand for the moment, it's not too tough.  Or  
backup to Java 5.

Sean

On Aug 9, 2007, at 4:48 AM, kylin wrote:

> Dear Sir:
>         I am a new comer to mason ,and today I am trying to build the
> jars of mason and the other utilities ,the classpaths are set.but
> still error as
> //////////////////////////////////////////////////////
> Severity and Description	Path	Resource	Location	
>
> Creation Time	Id
> The type Console is ambiguous	mason/sim/display3d	
>
> Display3D.java	line 364	1186585142906	10043
>
> //////////////////////////////////
> I am using jdk 1.5 under window
> thank  you!
> -- 
> Wang Bing
> Institute of Software
> School of Computer  Science
> National Univ. of Defense Tech.
> HuNan China
> Mobile:086-13755009547
> Dom :  086-0731-4574606

ATOM RSS1 RSS2