UnsatisfiedLinkError, despite setting Djava.library.path variable
I am trying to integrate IBM's CPLEX library with my java application. For now, i'm just trying to create an IloCplex object. I added Cplex.jar, and it compiles fine, but when I run this: public class cplexTest{ public static void main(String[] args){ try{ IloCplex cplex = new IloCplex(); }catch (Exception e){ e.printStackTrace(); } } Cplex prints this message before throwing an exception: java.lang.UnsatisfiedLinkError: no cplex124 in java.library.path java.library.path must point to the directory containing the CPLEX shared library try invoking java with java -Djava.library.path=... I pass