title: Weka class cannot be initialized: InvocationTargetException
body: <p>This is my first time using <code>weka</code>, I am sorry if my question seems naive. But I was really stuck by this problem. </p>
  
  <p>I am using <code>weka</code> in my own <code>java</code> project in <code>eclipse</code>. I have successfully import <code>weka.jar</code> with attached <code>wekasource.jar</code>.  But when I ran the program, all the <code>weka</code> class always failed to be initialized(attribute, Fastvector etc.). All the <code>exceptions</code> are the same:</p>
  
  <pre><code>InvocationTargetException
  </code></pre>
  
  <p>I check the error stack where showed: java.lang.NoClassDefFoundError: weka/core/attribute</p>
  
  <p>Additional Info: I tried to create a new project in eclipse ,and use weka, it works. But it still can not work in my own existing project. </p>
  
  <p>Does anyone have some ideas how should I solve this problem?</p>