scipopt / JSCIPOpt

Java interface for the SCIP Optimization Suite
MIT License
62 stars 35 forks source link

Installation of JSCIPOpt for Windows and IntelliJ #17

Closed hklarner closed 5 years ago

hklarner commented 5 years ago

We have some trouble setting up JSCIPOpt under Windows and IntelliJ. The error message is an unsatisfied link:

Main Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Backend\JSCIPOptTest\lib\jscip.dll: Can't find dependent libraries
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1857)
    at java.lang.Runtime.loadLibrary0(Runtime.java:870)
    at java.lang.System.loadLibrary(System.java:1122)
    at Main.main(Main.java:9)

Steps that we have completed successfully:

OS:

The message Can't find dependent libraries sounds like we are missing additional libraries. What can we try next?

mueldgog commented 5 years ago

Did you add <absolute path to SCIP Optimization Suite>/build/bin/{Release,Debug} to the PATH variable of Windows?

hklarner commented 5 years ago

When installing SCIPOptSuite 6.0.2 in windows we get the error:

Warning! PATH too long installer unable to modify PATH!

Have you seen this before? What can we do?

mueldgog commented 5 years ago

No, I have never seen this before. From this, I would guess that it is not related to SCIP.

hklarner commented 5 years ago

Right. When installing SCIPOptSuite-6.0.2-win64-VS15.exe and not adding to path the installation finishes with a SCIP suite folder that contains three folders:

inside bin there are four files:

Does this look correct to you? It is missing the /build/bin//Release part of the path you mentioned above

hklarner commented 5 years ago

Ok. We fiddled again with the IntelliJ PATH settings and added the path to the bin folder and now it works.

hklarner commented 5 years ago

phew

mueldgog commented 5 years ago

The structure of the directories looks correct. I just wanted to say that the documentation only mentions the build directory, but sure, you can also install SCIP.

mueldgog commented 5 years ago

Very good! I'm not to familiar with Java, but making JSCIPOpt work on Windows seems to be a tough nut.