title: "No matching ctor found" while trying to populate a Java class from Clojure
body: <p>I am getting a "No matching ctor found" error while trying to populate a Java class from Clojure.</p>
  
  <p>I want to populate this class from Clojure.</p>
  
  <pre><code>import java.util.Date;
  
  public class Account {
      Account() { acct_num = 0; 
                  trans_type = 'U';
                  trans_amt = 0.00;
                  cur_bal = 0.00;
                  last_update = null;
                 }
  
      public int acct_num = 0;
      public char trans_type;
      public double trans_amt = 0.00;
      public double cur_bal = 0.00;
      public Date last_update;
  }
  </code></pre>
  
  <p>I can import the class:</p>
  
  <pre><code>ba2-app=&gt; (ns ba2-app (:import Account))
  Account
  </code></pre>
  
  <p>but when I go to populate it, I get this error:</p>
  
  <pre><code>ba2-app=&gt; (:use java.util.Date)
  nil
  ba2-app=&gt; (Account. 1000 \C 100.00 0.00 (java.util.Date. "12/21/2011"))
  java.lang.IllegalArgumentException: No matching ctor found for class Account (NO_SOURCE_FILE:9)
  </code></pre>
  
  <p>I followed <a href="https://stackoverflow.com/questions/8577701/building-java-in-with-clojure-using-cake">these suggestions</a> to get the Java class built in with my Clojure code. The suggestions which were very helpful, because I can now build the Java class.</p>
  
  <p>Any pointers or suggestions would be helpful. I know the class members should be private, but this is to test out a larger project.</p>