title: Why is WEKA not running from the command line?
body: <p>I apologize, this seems like it is really simple but I can't seem to get it.</p>
  
  <p>I've downloaded the Windows version of WEKA and installed it, but I can't seem to call it from the command line.</p>
  
  <p>I've added a <code>WEKAHOME</code> environment variable, pointing to the directory containing <code>weka.jar</code>, and added that to my path with <code>/weka.jar</code> appended to it..</p>
  
  <p>I am trying this command: <code>java weka.classifiers.j48.J48 -t %WEKAHOME%/data/iris.arff</code></p>
  
  <p>I then get the following error output.</p>
  
  <blockquote>
    <p>Exception in thread "main" java.lang.NoClassDefFoundError:
    weka/classifiers/j48/ J48 Caused by: java.lang.ClassNotFoundException:
    weka.classifiers.j48.J48
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source) Could not find the main class: weka.classifiers.j48.J48.  Program will exit.</p>
  </blockquote>
  
  <p>What can I do to fix this?</p>