Originally posted by: Ebisa
Dear GG, thanks for the helpful information.
I have now installed the 12.4 version and it works fine now on Windows machine. However, I want to run the program on a linux based server machine. After installing the 12.4 linux version on the server, I get an error that is listed below:
==================================================================================================
Native code library failed to load: ensure the appropriate library (opl<VERSION>.dll/.so) is in your path.
Exception in thread "main" java.lang.ExceptionInInitializerError
at ilog.concert.cppimpl.concert_wrap.setDebugWrappers(concert_wrap.java:34)
at ilog.opl.IloOplFactory.setDebugMode(IloOplFactory.java:152)
at topology_dijkstra_124.Topology_dijkstra_124.main(Topology_dijkstra_124.java:49)
Caused by: java.lang.RuntimeException:
Native code library failed to load:
ensure the appropriate library (opl<VERSION>.dll/.so) is in your path.
at ilog.concert.IloJNILoader.loadJNI(IloJNILoader.java:79)
at ilog.concert.cppimpl.concert_wrapJNI.<clinit>(concert_wrapJNI.java:15)
... 3 more
==============================================================================================
I have correctly specified the path to the library. You can see the .sh file that contains my script to run the .jar file below:
#!/bin/bash
#=================== eb.sh =====================
#PBS -l mem=1000mb,nodes=1:ppn=1,walltime=999:30:00
#PBS -m abe -M
user@tudelft.nl #PBS -o eb_${PBS_JOBID}.o
#PBS -e eb_${PBS_JOBID}.e
#PBS -V
cd ${PBS_O_WORKDIR}
LD_LIBRARY_PATH=/home/enegeri/data/opt/ibm/ILOG/CPLEX_Studio124/opl/bin/x86-64_sles10_4.1
export LD_LIBRARY_PATH
java -Djava.library.path=/home/enegeri/data/opt/ibm/ILOG/CPLEX_Studio124/opl/bin/x86-64_sles10_4.1 -jar /home/enegeri/data/topology_dijkstra_124.jar
#================================================
The path specified in the LD_LIBRARY_PATH above is exactly where the libopl124.so is located. But it complains that it could not find it. Can some one help me why this is happening, and how to solve it?
For more information:
my server runs centos 5.6 verion of linux
and the java version is 1.6.0_22
Thanks in advance.
Ebisa
#CPOptimizer#DecisionOptimization