OR Tools on Windows

5 views
Skip to first unread message

Kevin Malysiak

unread,
8:01 AM (2 hours ago) 8:01 AM
to or-tools-discuss
I've installed on WIndows 11 (Home) the as per the instructions. I'm able to compile one of the samples of interest. However, when I attempt to execute, there is a library not found. See below.

Any advice appreciated.

Thanks.

Kevin.

---------------------------------------------------

System.load(highs) failed!
Exception in thread "main" java.lang.RuntimeException: java.lang.UnsatisfiedLinkError: Can't load library: C:\Users\kmaly\AppData\Local\Temp\ortools-java11523876541633173071\ortools-win32-x86-64\highs.dll
        at com.google.ortools.Loader.loadNativeLibraries(Loader.java:156)
        at main.java.com.google.ortools.MinimalJobshopSat.main(MinimalJobshopSat.java:39)
Caused by: java.lang.UnsatisfiedLinkError: Can't load library: C:\Users\kmaly\AppData\Local\Temp\ortools-java11523876541633173071\ortools-win32-x86-64\highs.dll
        at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2398)
        at java.base/java.lang.Runtime.load0(Runtime.java:755)
        at java.base/java.lang.System.load(System.java:1970)
        at com.google.ortools.Loader.loadNativeLibraries(Loader.java:150)
        ... 1 more

Laurent Perron

unread,
8:03 AM (2 hours ago) 8:03 AM
to or-tools-discuss
As usual, most likely missing visual studio redistributable librairies. 

Laurent Perron | Operations Research | lpe...@google.com | (33) 1 42 68 53 00


--
You received this message because you are subscribed to the Google Groups "or-tools-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to or-tools-discu...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/or-tools-discuss/e6aaafc4-4cae-44c1-8791-a0d71ba9a5e0n%40googlegroups.com.

Kevin Malysiak

unread,
9:26 AM (1 hour ago) 9:26 AM
to or-tools-discuss
Hi,

Thanks for your note.

I'm pretty sure I installed the required library.


In the section on Prerequisites, there is a link to download the redistributable libraries. The downloaded file was called VC_redist.x64.exe. I installed it.

Then, when I check in the settings, that is Settings -> Apps -> Installed Apps, I see Microsoft Visual C++ Redistributable (x64) - 14.40.33816 is installed.

Unless this is the wrong file?

Settings-> Apps -> Installed Apps also shows some earlier versions of this library installed. Could that be the problem?

Thanks.

Kevin.

Kevin Malysiak

unread,
9:29 AM (1 hour ago) 9:29 AM
to or-tools-discuss
Sorry that should be ...

 Microsoft Visual C++ 2015-2022 Redistributable (x64) - 14.40.33816

Reply all
Reply to author
Forward
0 new messages