Print

Print


This is the first problem you are going to need to address and is most
likely caused by a bad project configuration:

Caused by: java.lang.ClassFormatError: Duplicate method name&signature in
class file sim/util/media/chart/XYChartGenerator

Since I don't have the project in front of me the best advice I can offer
is to avoid using the MASON .java files directly and just reference the JAR
instead.

Little red X next to components can have a lot of meanings - would need to
see the details since that could be anything from a syntax error to
referencing a class that Eclipse can't find.

On Mon, Mar 19, 2018 at 3:14 PM, Peter Gacs <[log in to unmask]> wrote:

> > What were the errors you got from Eclipse?
>
> Little red x next to many components.
>
> Also, when I try to run the Console I get a warning about errors.  I am
> bringing it up anyway, and
> try to run, say, Ant Foraging.  I get the following trace:
>
> java.lang.reflect.InvocationTargetException
>         at java.awt.EventQueue.invokeAndWait(EventQueue.java:1307)
>         at java.awt.EventQueue.invokeAndWait(EventQueue.java:1282)
>         at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.
> java:1348)
>         at sim.display.Console.launchClass(Console.java:1958)
>         at sim.display.Console.doNew(Console.java:2090)
>         at sim.display.Console.main(Console.java:1726)
> Caused by: java.lang.ClassFormatError: Duplicate method name&signature in
> class file sim/util/media/chart/XYChartGenerator
>         at java.lang.ClassLoader.defineClass1(Native Method)
>         at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
>         at java.security.SecureClassLoader.defineClass(
> SecureClassLoader.java:142)
>         at java.net.URLClassLoader.defineClass(URLClassLoader.java:455)
>         at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:367)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>         at java.lang.ClassLoader.defineClass1(Native Method)
>         at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
>         at java.security.SecureClassLoader.defineClass(
> SecureClassLoader.java:142)
>         at java.net.URLClassLoader.defineClass(URLClassLoader.java:455)
>         at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:367)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>         at java.lang.ClassLoader.defineClass1(Native Method)
>         at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
>         at java.security.SecureClassLoader.defineClass(
> SecureClassLoader.java:142)
>         at java.net.URLClassLoader.defineClass(URLClassLoader.java:455)
>         at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:367)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Class.java:344)
>         at sim.portrayal.inspector.PropertyInspector.getPopupMenu(
> PropertyInspector.java:213)
>         at sim.portrayal.SimpleInspector.generateProperties(
> SimpleInspector.java:253)
>         at sim.portrayal.SimpleInspector.<init>(SimpleInspector.java:67)
>         at sim.portrayal.SimpleInspector.<init>(SimpleInspector.java:98)
>         at sim.portrayal.SimpleInspector.<init>(SimpleInspector.java:90)
>         at sim.portrayal.Inspector.getInspector(Inspector.java:96)
>         at sim.display.GUIState.getInspector(GUIState.java:239)
>         at sim.display.Console.buildModelInspector(Console.java:1180)
>         at sim.display.Console.<init>(Console.java:968)
>         at sim.display.GUIState.createController(GUIState.java:147)
>         at sim.display.Console$52.run(Console.java:1958)
>         at java.awt.event.InvocationEvent.dispatch(
> InvocationEvent.java:301)
>         at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:744)
>         at java.awt.EventQueue.access$400(EventQueue.java:97)
>         at java.awt.EventQueue$3.run(EventQueue.java:697)
>         at java.awt.EventQueue$3.run(EventQueue.java:691)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.security.ProtectionDomain$1.doIntersectionPrivilege(
> ProtectionDomain.java:75)
>         at java.awt.EventQueue.dispatchEvent(EventQueue.java:714)
>         at java.awt.EventDispatchThread.pumpOneEventForFilters(
> EventDispatchThread.java:201)
>         at java.awt.EventDispatchThread.pumpEventsForFilter(
> EventDispatchThread.java:116)
>         at java.awt.EventDispatchThread.pumpEventsForHierarchy(
> EventDispatchThread.java:105)
>         at java.awt.EventDispatchThread.pumpEvents(
> EventDispatchThread.java:101)
>         at java.awt.EventDispatchThread.pumpEvents(
> EventDispatchThread.java:93)
>         at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
>