I'm trying to use LibSVM programmatically in Java, via the Weka wrapper written by El-Manzalawy, running on Windows 7. I've added C:\Program Files (x86)\libsvm-3.12\java\libsvm.jar
to my CLASSPATH
environmental variable. After adding that I can now use LibSVM via the Weka explorer user interface, but it still fails when I'm calling it in code (debugging in eclipse).
I try to create it using Weka.core.Utils.forName
. This goes through to LibSVM.java
which then calls the java method Class.forName(...)
, passing CLASS_SVM as the param which is set to "libsvm.svm".
I've used Weka.core.Utils.forName
to create others classifiers programmatically without problems.
Anyone have any ideas?