Java Static Libraries defined in javaclasspath.txt are not loaded in the parallel pool

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 :)

 채택된 답변

Mohammad Sami
Mohammad Sami 2020년 7월 22일
After some search on the forum. It seems that if javaclasspath.txt is located in the "preference directory" it will be loaded correctly.
I tested it out and seems to be working now.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Call Java from MATLAB에 대해 자세히 알아보기

제품

릴리스

R2020a

질문:

2020년 7월 22일

답변:

2020년 7월 22일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by