27979

Install SCIP on Eclipse

Question:

I am trying to make the SCIP work with Java/Windows 7. I have installed Eclipse Mars.

I am kind of new to the SCIP. I read through the installation procedure and try to install the SCIP. But I can't understand the installation procedure clearly. I downloaded <a href="http://scip.zib.de/download.php?fname=scipjni-3.2.1.win.x86_64.msvc.opt.spx.zip" rel="nofollow">this</a> library, and installed the .jar and the .dll like I am used to do, however there are very few examples online about SCIP in Java, and I can't import this correctly. Can anyone tell me how to install the SCIP or guide me to an example?

Thank you very much.

Answer1:

There was an issue with the file names in the JNI library. I fixed this issue and updated the library <a href="http://scip.zib.de/download.php?fname=scipjni-3.2.1.win.x86_64.msvc.opt.spx.zip" rel="nofollow">here</a>. 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 <ol><li>copy the JniKnapsack.java into a new Java project</li> <li>add the scip.jar as an external JAR (<strong>Properties</strong> > <strong>Java Build Path</strong> > <strong>Add External Jars</strong>)</li> <li>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</li> <li>replace the line JniScipLibraryLoader.loadLibrary(); in JniKnapsack.java with System.loadLibrary("libjscip-0.1.mingw.x86_64.msvc.opt.spx");</li> </ol>

Now you should be able to run the program as an <strong>Java Application</strong>.

Recommend

  • Copy a file from PDA to PC via USB in java
  • NewGlobalRef of a weak reference still prevent a object from garbage collected
  • How to use JNI to call a “main” function that takes an array of character pointers?
  • Singular Value Decomposition Implementation
  • Get or convert Week of year to ISO week
  • How to distribute Java-based software?
  • Graceful pod termination
  • How do I import an existing Grails 3 (3.0.12) project in IntelliJ 15
  • iOS Cordova first plugin - plugin.xml to inject a feature
  • Possible to “watch” both HAML and SASS at the same time?
  • SAVE attribute needed for Fortran variables when only the C_LOC address is returned to a C program?
  • Multicolored edittext hint
  • Redux Form - Not able to type anything in input
  • Sequential (transactional) API calls in angular 4 with state management
  • Access Android Market through SSH tunnel
  • Installed module is empty
  • How can I sort a a table with VBA with given text condition?
  • PHP buffered output depending on server setting?
  • Make VS2015 use angular-cli ng at build time in a .NET project
  • If I include Java 8 in my Android app does that affect which devices it will work on?
  • All Classes Conforming to Protocol Inherit Default Implementation
  • Display issues when we change from one jquery mobile page to another in firefox
  • Different response to non-authenticated users and AJAX calls
  • Arrow is showed instead of the material design version hamburger icon. Why doesn't syncState in
  • Javascript + PHP Encryption with pidCrypt
  • Why winpcap requires both .lib and .dll to run?
  • Return words with double consecutive letters
  • Confusion with PayPal's monthly billing cycle
  • Run Powershell script from inside other Powershell script with dynamic redirection to file
  • VB.net deserialize, JSON Conversion from type 'Dictionary(Of String,Object)' to type '
  • Data Validation Drop Down Box Arrow Disappearing
  • Python: how to group similar lists together in a list of lists?
  • Load html files in TinyMce
  • How can I get HTML syntax highlighting in my editor for CakePHP?
  • Why can't I rebase on to an ancestor of source changesets if on a different branch?
  • coudnt use logback because of log4j
  • Qt: Run a script BEFORE make
  • Busy indicator not showing up in wpf window [duplicate]
  • Unable to use reactive element in my shiny app
  • Conditional In-Line CSS for IE and Others?