MASON-INTEREST-L Archives

August 2015

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:
Tue, 4 Aug 2015 16:03:12 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (23 lines)
On Aug 4, 2015, at 12:31 PM, Ernesto Carrella <[log in to unmask]> wrote:

> Where in the code does MASON check if the JFreeChart library is available? 

In sim.portrayal.inspector.PropertyInspector.java.

In the following code, notice the commented out errors.  If you uncomment them and rebuild PropertyInspector.java, it'll generate lots of errors on trying to load non-existent JFreeChart classes.

            try 
                { 
                _theClass = Class.forName((String)(classes.objs[x]), true, Thread.currentThread().getContextClassLoader());
                }       
            catch (ClassNotFoundException error) 
                {
                //error.printStackTrace();  // fail silently, it's annoying
                continue;  // no class, can't make menu
                }
            catch (NoClassDefFoundError error) // why does this even exist?
                {
                //error.printStackTrace();  // fail silently, it's annoying
                continue;  // no class, can't make menu
                }

ATOM RSS1 RSS2