title: Java Method Not Found, even though method signature looks OK (desmo-j simulation)
body: <p>I'm trying to run the Desmo-J simulation sample in Java, NetBeans 7.2 on a Mac OS X 10.7.
  A class called TimeSeries is included as an import ie.</p>
  
  <pre><code>import desmoj.core.statistic.TimeSeries;
  </code></pre>
  
  <p>It has a function signature of</p>
  
  <pre><code>(Model, String, TimeInstant,TimeInstant, boolean)
  </code></pre>
  
  <p>I can <b>compile</b> my main java file OK, but when <b>running/debugging</b>, it fails, telling me</p>
  
  <pre><code>Exception in thread "main" java.lang.NoSuchMethodError: desmoj.core.statistic.TimeSeries.&lt;init&gt;(Ldesmoj/core/simulator/Model;Ljava/lang/String;Ldesmoj/core/simulator/TimeInstant;Ldesmoj/core/simulator/TimeInstant;Z)V
  </code></pre>
  
  <p>This is despite the fact the call I'm making (AFAIK) passes exactly the right typed parameters:</p>
  
  <pre><code>trucksArrived = new TimeSeries(this.getModel(), "arrived", new TimeInstant(0), new TimeInstant(1500), false);
  trucksServiced = new TimeSeries(this.getModel(), "finished", new TimeInstant(0), new TimeInstant(1500), false);
  </code></pre>
  
  <p>I'm stumped as to why this might be happening. <b>Any clues on why Java would be unable to recognise my method call at runtime, while seeing it fine in the compile?</b>
  Could it be something interfering on the classpath ie. another TimeSeries out there (can't see any at the moment in the libs)? Have I read the exception message (with its function signature) properly? Some of the methods in TimeSeries are deprecated (though not the ones I'm using). Could that interfere with things perhaps?</p>
  
  <p>Thanks guys
  Pete</p>