I have placed the file javaclasspath.txt file in my Matlab working folder. User\Documents\MATLAB\javaclasspath.txt
This loads the jar files correctly when the Matlab is started.
However when I start the parallel pool, it appears none of the static libraries defined in the txt are loaded.
I tested it as follows
p = gcp;out = parfevalOnAll(p,@()javaclasspath('-static'),1);out.fetchOutputs
Unfortunately I need to load these libraries statically as they do not work when they are loaded dynamically.
Hope some one is able to guide me to a solution 🙂
Best Answer