Can't load IA 32-bit .dll on a AMD 64-bit platform

后端 未结 14 2300
逝去的感伤
逝去的感伤 2020-12-24 05:20

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\");
  }
         


        
14条回答
  •  星月不相逢
    2020-12-24 05:35

    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 );
    

提交回复
热议问题