how to solve "libsvm classes are not in classpath" in weka? show me with picture please

Viewed 36

I'M using weka 3.6.9 & libsvm or liblinear shows "libsvm classes are not in classpath" can you please sho with picture to me how to solve it?

1 Answers

It will be easier to use Weka 3.8.x or 3.9.x, as you can use its package manager. Below are instructions for both.

Weka 3.6.9

  • Download the libsvm zip file from the libsvm project page

  • Decompress the archive

  • Copy libsvm.jar from inside the java directory into the directory where your weka.jar is located

  • Open a terminal and go to the directory where your weka.jar is located

  • Start Weka like this on Linux (under Windows, use ; instead of :):

    java -cp weka.jar:libsvm.jar weka.gui.GUIChooser
    
  • Use the weka.classifiers.functions.LibSVM classifier

Weka 3.8.x/3.9.x

  • Open the package manager
  • Search for libsvm
  • Install the libSVM package
  • Restart Weka and use the weka.classifiers.functions.LibSVM classifier
Related