I am trying to use SVMLight from Java, using the JNI wrapper on this page:
static {
System.loadLibrary(\"lib/JNI_SVM-light-6.01/lib/svmlight\");
}
>
Got this from - http://blog.cedarsoft.com/2010/11/setting-java-library-path-programmatically/
If set the java.library.path, need to have the following lines in order to work.
Field fieldSysPath;
fieldSysPath = ClassLoader.class.getDeclaredField( "sys_paths" );
fieldSysPath.setAccessible( true );
fieldSysPath.set( null, null );