[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.newcomer] Re: Console is ambiguous

On 10/3/2008 12:55 AM, Yao wrote:
hi all,

I am using Eclipse SDK Version: 3.3.2 Build id: M20080221-1800, with JRE
1.6.0_05 by SUN.

I am building a JAVA project(BIOCONTROL) that has another JAVA project
(MASON) in its build path. When I try to run the java main class, I get
the following error message in my console window and I am stuck! Can
someone help me out ?

It is telling you that the class sim.portrayal.inspector.PropertyInspector does not compile, it has an error because it can't resolve a class named Console that ProeprtyInspector is using.
Fix whatever compile errors you have in the project and then it should run.


Hope this helps,
Eric


Exception in thread "main" java.lang.Error: Unresolved compilation
problem: The type Console is ambiguous

at
sim.portrayal.inspector.PropertyInspector.getPopupMenu(PropertyInspector.java:228)

at
sim.portrayal.SimpleInspector.generateProperties(SimpleInspector.java:184)
at sim.portrayal.SimpleInspector.<init>(SimpleInspector.java:65)
at sim.portrayal.SimpleInspector.<init>(SimpleInspector.java:53)
at sim.display.GUIState.getInspector(GUIState.java:210)
at sim.display.Console.buildModelInspector(Console.java:995)
at sim.display.Console.<init>(Console.java:835)
at biocontrol.FieldUI.main(FieldUI.java:22)