Unsatisfied link error on a simple test

33 views
Skip to first unread message

Neil Aggarwal

unread,
Aug 11, 2025, 11:00:39 PMAug 11
to or-tools...@googlegroups.com
This is strange, I am getting this error:
Exception in thread "main" java.lang.UnsatisfiedLinkError: 'void
com.google.ortools.sat.mainJNI.swig_module_init()'
at com.google.ortools.sat.mainJNI.swig_module_init(Native Method)
at com.google.ortools.sat.mainJNI.<clinit>(mainJNI.java:52)
at
com.google.ortools.sat.SolutionCallback.<init>(SolutionCallback.java:119)
at
com.google.ortools.sat.CpSolverSolutionCallback.<init>(CpSolverSolutionCal
lback.java:39)
at ortools.SimpleTest.<init>(SimpleTest.java:9)
at ortools.SimpleTest.main(SimpleTest.java:32)

On a very simple test case. Please see my code attached.

Other simple tests are running.

Any idea what is happening?

Thank you,
Neil

--
Neil Aggarwal, (972) 834-1565, http://www.propfinancing.com
We offer 30 year loans on single family houses!
SimpleTest.java

Laurent Perron

unread,
Aug 11, 2025, 11:06:33 PMAug 11
to or-tools...@googlegroups.com
what platform ?

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/e221930f792c00cfef1d6cdf4b20e8f2%40mail.gmail.com.

Neil Aggarwal

unread,
Aug 11, 2025, 11:08:10 PMAug 11
to or-tools...@googlegroups.com

Windows 11 running Temurin JDK 24

 

Thank you,

 Neil

 

--

Neil Aggarwal, (972) 834-1565, http://www.propfinancing.com

We offer 30 year loans on single family houses!

 

Laurent Perron

unread,
Aug 12, 2025, 12:24:51 AMAug 12
to or-tools-discuss
So, most likely a problem with visual studio redistributable a c++ librairies

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

Neil Aggarwal

unread,
Aug 12, 2025, 10:15:29 AMAug 12
to or-tools...@googlegroups.com

> most likely a problem with visual studio redistributable a c++ librairies

 

Thanks for the info.  I split the callback into a separate class and it worked
so that is an easy workaround.

Reply all
Reply to author
Forward
0 new messages