title: How to add LibSVM class to WEKA classpath on a Mac
body: <p>I am running Max OS X 10.7 Lion and I want to use WEKA with LibSVM from command line.  I get this error:</p>
  
  <pre><code>Problem evaluating classifier: libsvm classes not in CLASSPATH!
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/2t91y.png" alt="Error I am receiving in WEKA"></p>
  
  <p>I found the LibSVM library <a href="http://www.csie.ntu.edu.tw/~cjlin/libsvm/#download" rel="nofollow noreferrer">here</a>. I need to add it to my Java classpath so that WEKA can find it.  The download contains several files, shown below. I don't know how to add them to my classpath for Java.</p>
  
  <p><img src="https://i.stack.imgur.com/ES3Vm.png" alt="Files in LibSVM download that need to be added to classpath"></p>
  
  <p>I am attempting to use the LibSVM classifier in WEKA because it is preferable for me over SMO. I am also unsure if this means the Java classpath or if it is specific to WEKA. I also don't know where to get these classes from. Any help is appreciated.</p>