Install SCIP on Eclipse

泄露秘密 提交于 2019-12-02 11:19:58

There was an issue with the file names in the JNI library. I fixed this issue and updated the library here. Please note that you need to have a 64bit version of Java to run the SCIP-JNI.

Do the following steps to run the JniKnapsack example which you can find in

 <scipdir>/interfaces/jni/examples/JniKnapsack/java/JniKnapsack.java
  1. copy the JniKnapsack.java into a new Java project
  2. add the scip.jar as an external JAR (Properties > Java Build Path > Add External Jars)
  3. put the libjscip*.{dll,lib} and libscip-3.2.1*.{dll,lib} next to the scip.jar or inside the main directory of your new project
  4. replace the line JniScipLibraryLoader.loadLibrary(); in JniKnapsack.java with System.loadLibrary("libjscip-0.1.mingw.x86_64.msvc.opt.spx");

Now you should be able to run the program as an Java Application.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!