Originally posted by: GlcBrero
Ok, it is all very fishy.
Yes, "echo $DYLD_LIBRARY_PATH" prints the expected value, and starting Java from the same shell prints this environment variable as null. Also, everything works under "java -Djava.library.path=$DYLD_LIBRARY_PATH ..."
To print the environment variables from java, I simply do
Map<String, String> envVars = System.getenv();
System.out.println("DYLD_LIBRARY_PATH = "+envVars.get("DYLD_LIBRARY_PATH"));
Last weird thing: if I modify the environment variable $PATH in the same shell that runs java, and I print the PATH variable from java, I get the modified version. And the same happens if, instead of java, I just run a bash script that prints variables: $PATH gets modified, "DYLD_LIBRARY_PATH" is null. Thus, the environment variable DYLD_LIBRARY_PATH gets cleared, and this is not even a java issue.
Finally, yes, this error comes from a third party library. Thus, I guess it is all unrelated to cplex! I'll mark this as solved and try to find some workaround.
Many many thanks for your help!!!
Gianluca
#CPLEXOptimizers#DecisionOptimization