[SCIP] Running SCIP with Java on Windows with eclipse

Sam Ganzfried sam.ganzfried at gmail.com
Mon Feb 25 23:25:15 CET 2019


my bin/Release folder has scip.dll, scip.exe, and soplex.exe in it, but no
scip.jar

On Mon, Feb 25, 2019 at 4:30 PM Sam Ganzfried <sam.ganzfried at gmail.com>
wrote:

> I am looking at the execution step. I see scip.dll, but not scip.jar.
> Where can I find scip.jar?
>
> export PATH=$PATH:<absolute path to SCIP Optimization Suite>/build/bin/{Release,Debug}
> cd Release
> java -cp "scip.jar;examples.jar" <"Linear" or "Quadratic" or "Read" or "Multiknapsack">
>
>
> On Mon, Feb 25, 2019 at 4:01 PM Sam Ganzfried <sam.ganzfried at gmail.com>
> wrote:
>
>> Thank you for the help, I've been able to get it to compile using the
>> cmake -DCGC=off command.
>>
>> On Mon, Feb 25, 2019 at 3:46 PM Sam Ganzfried <sam.ganzfried at gmail.com>
>> wrote:
>>
>>> I tried "nmake" and it seems to be compiling (slowly).
>>> I will report back if it works.
>>>
>>> On Mon, Feb 25, 2019 at 3:35 PM Sam Ganzfried <sam.ganzfried at gmail.com>
>>> wrote:
>>>
>>>> Thank you that helped fix it.
>>>>
>>>> Now I am getting:
>>>>
>>>> C:\SCIP\scipoptsuite-6.0.1\build>make
>>>> 'make' is not recognized as an internal or external command,
>>>> operable program or batch file.
>>>>
>>>> On Mon, Feb 25, 2019 at 3:31 PM Matthias Walter <
>>>> matthias at matthiaswalter.org> wrote:
>>>>
>>>>> Dear Sam,
>>>>>
>>>>> there is a bug in GCGs cmake build files. Since, at the moment, GCG
>>>>> does not compile under Windows, I suggest to disable it by adding
>>>>> "-DGCG=off" when invoking cmake.
>>>>>
>>>>> Best regards,
>>>>> Matthias
>>>>>
>>>>> On 25.02.19 19:55, Sam Ganzfried wrote:
>>>>>
>>>>> Here is current error when I execute the "cmake .." command as stated.
>>>>>
>>>>> C:\SCIP\scipoptsuite-6.0.1\build>cmake ..
>>>>> -- The C compiler identification is MSVC 19.16.27027.1
>>>>> -- The CXX compiler identification is MSVC 19.16.27027.1
>>>>> -- Check for working C compiler: C:/Program Files (x86)/Microsoft
>>>>> Visual
>>>>> Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe
>>>>> -- Check for working C compiler: C:/Program Files (x86)/Microsoft
>>>>> Visual
>>>>> Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe --
>>>>> works
>>>>> -- Detecting C compiler ABI info
>>>>> -- Detecting C compiler ABI info - done
>>>>> -- Detecting C compile features
>>>>> -- Detecting C compile features - done
>>>>> -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft
>>>>> Visual
>>>>> Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe
>>>>> -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft
>>>>> Visual
>>>>> Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe --
>>>>> works
>>>>> -- Detecting CXX compiler ABI info
>>>>> -- Detecting CXX compiler ABI info - done
>>>>> -- Detecting CXX compile features
>>>>> -- Detecting CXX compile features - done
>>>>> -- Could NOT find BISON (missing: BISON_EXECUTABLE)
>>>>> -- Could NOT find FLEX (missing: FLEX_EXECUTABLE)
>>>>> -- Could NOT find GMP (missing: GMP_INCLUDE_DIRS GMP_LIBRARIES)
>>>>> -- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
>>>>> -- Could NOT find GMP (missing: GMP_INCLUDE_DIRS GMP_LIBRARIES)
>>>>> -- Build shared libraries: ON
>>>>> -- Build type: Release
>>>>> -- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
>>>>> -- Could NOT find Readline (missing: Readline_INCLUDE_DIR
>>>>> Readline_LIBRARY)
>>>>> -- Could NOT find GMP (missing: GMP_INCLUDE_DIRS GMP_LIBRARIES)
>>>>> -- Could NOT find BLISS (missing: BLISS_INCLUDE_DIR BLISS_INCLUDE_DIRS
>>>>> BLISS_LIBRARIES BLISS_DEFINITIONS)
>>>>> -- Could NOT find ZIMPL (missing: ZIMPL_DIR)
>>>>> -- Could NOT find IPOPT (missing: IPOPT_LIBRARIES) (Required is at
>>>>> least version "3.12.0")
>>>>> -- Looking for FE_DOWNWARD
>>>>> -- Looking for FE_DOWNWARD - found
>>>>> -- Could NOT find CRITERION (missing: CRITERION_LIBRARY
>>>>> CRITERION_INCLUDE_DIR)
>>>>> -- Could NOT find CRITERION (missing: CRITERION_LIBRARY
>>>>> CRITERION_INCLUDE_DIR)
>>>>> -- Build shared libraries: ON
>>>>> -- Build type: Release
>>>>> -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
>>>>> -- Could NOT find GSL: Found unsuitable version "", but required is at
>>>>> least "2.0" (found GSL_INCLUDE_DIR-NOTFOUND)
>>>>> -- Could NOT find GMP (missing: GMP_INCLUDE_DIRS GMP_LIBRARIES)
>>>>> -- Could NOT find CLIQUER (missing: CLIQUER_INCLUDE_DIRS
>>>>> CLIQUER_LIBRARIES)
>>>>> CMake Error at C:/Program
>>>>> Files/CMake/share/cmake-3.14/Modules/FindPackageHandleStandardArgs.cmake:137
>>>>> (message):
>>>>>   Could NOT find GMP (missing: GMP_INCLUDE_DIRS GMP_LIBRARIES)
>>>>> Call Stack (most recent call first):
>>>>>   C:/Program
>>>>> Files/CMake/share/cmake-3.14/Modules/FindPackageHandleStandardArgs.cmake:378
>>>>> (_FPHSA_FAILURE_MESSAGE)
>>>>>   gcg/cmake/Modules/FindGMP.cmake:38
>>>>> (find_package_handle_standard_args)
>>>>>   gcg/CMakeLists.txt:174 (find_package)
>>>>>
>>>>>
>>>>> -- Configuring incomplete, errors occurred!
>>>>> See also "C:/SCIP/scipoptsuite-6.0.1/build/CMakeFiles/CMakeOutput.log".
>>>>> See also "C:/SCIP/scipoptsuite-6.0.1/build/CMakeFiles/CMakeError.log".
>>>>>
>>>>> On Sun, Feb 24, 2019 at 10:15 AM Sam Ganzfried <
>>>>> sam.ganzfried at gmail.com> wrote:
>>>>>
>>>>>> Thank you, I am trying to follow the instructions.
>>>>>>
>>>>>> I have downloaded gmake, but when I run the following from the
>>>>>> optimization suite directory
>>>>>>
>>>>>> C:\SCIP\scipoptsuite-6.0.1\build>set
>>>>>> PATH="C:\SCIP\cmake-3.14.0-rc2\bin\";%PATH%
>>>>>> C:\SCIP\scipoptsuite-6.0.1\build>cmake ..
>>>>>>
>>>>>> I still get error: C:\SCIP\scipoptsuite-6.0.1\build>cmake ..
>>>>>> 'cmake' is not recognized as an internal or external command,
>>>>>> operable program or batch file.
>>>>>>
>>>>>> Do you have more specific instructions for setting up the C and cmake
>>>>>> installers in windows?
>>>>>>
>>>>>> Also, ultimately I would like to use eclipse in Windows to run my
>>>>>> programs.
>>>>>>
>>>>>> Thank you,
>>>>>> Sam
>>>>>>
>>>>>> On Sun, Feb 24, 2019 at 3:38 AM Gerald Gamrath <gamrath at zib.de>
>>>>>> wrote:
>>>>>>
>>>>>>> Dear Sam,
>>>>>>>
>>>>>>> you need to compile the Java interface first before you can run the
>>>>>>> example. Please have a look at the install instructions, there is also a
>>>>>>> section about windows further down:
>>>>>>> https://github.com/SCIP-Interfaces/JSCIPOpt/blob/master/INSTALL.md
>>>>>>>
>>>>>>> Best,
>>>>>>> Gerald
>>>>>>>
>>>>>>> On 24.02.19 03:48, Sam Ganzfried wrote:
>>>>>>>
>>>>>>> I fixed several issues, but now getting this issue for Linear.java
>>>>>>> example with Windows eclipse:
>>>>>>>
>>>>>>> Exception in thread "main" java.lang.UnsatisfiedLinkError: no jscip
>>>>>>> in java.library.path
>>>>>>>     at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
>>>>>>>     at java.lang.Runtime.loadLibrary0(Runtime.java:870)
>>>>>>>     at java.lang.System.loadLibrary(System.java:1122)
>>>>>>>     at jscip.Linear.main(Linear.java:12)
>>>>>>>
>>>>>>>
>>>>>>> On Sat, Feb 23, 2019 at 6:18 PM Sam Ganzfried <
>>>>>>> sam.ganzfried at gmail.com> wrote:
>>>>>>>
>>>>>>>> Hi, I see an example Java SCIP file here
>>>>>>>> https://github.com/SCIP-Interfaces/JSCIPOpt/blob/master/examples/Linear.java
>>>>>>>>
>>>>>>>> I have downloaded the SCIP studio from here
>>>>>>>> https://scip.zib.de/index.php#download.
>>>>>>>>
>>>>>>>> Is there a way to run the example java file from eclipse on
>>>>>>>> Windows? I am not sure how to do it.
>>>>>>>>
>>>>>>>> Thank you.
>>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Scip mailing listScip at zib.dehttps://listserv.zib.de/mailman/listinfo/scip
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Scip mailing list
>>>>>>> Scip at zib.de
>>>>>>> https://listserv.zib.de/mailman/listinfo/scip
>>>>>>>
>>>>>>
>>>>> _______________________________________________
>>>>> Scip mailing listScip at zib.dehttps://listserv.zib.de/mailman/listinfo/scip
>>>>>
>>>>>
>>>>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.zib.de/pipermail/scip/attachments/20190225/5ef31603/attachment.html>


More information about the Scip mailing list