Originally posted by: healyp
Thanks for your help. I am not a java programmer and was just given this code and include files "as is." I did not know about 'cplex.jar' and had been compiling against the cplex .class files in a subdirectory that were needed by the 'import' statements. Following your lead I managed to compile against 'cplex.jar' with
$ javac -Xlint -cp ".:$HOME/src/ibm-cplex/cplex/lib/cplex.jar" model.java
However, when I try to run this with your suggestion:
$ java -Djava.library.path=$HOME/src/ibm-cplex/cplex/bin/x86-64_linux model
I get
Error: Unable to initialize main class model
Caused by: java.lang.NoClassDefFoundError: ilog/concert/IloNumExpr
There is a libconcert.a file in a concert/lib subdir of the cplex distribution but I don't know if it is useful.
Any advice appreciated although I do not mean to turn this into a java tutorial.
Thanks.
#CPLEXOptimizers#DecisionOptimization