MATLAB: Do I get the error “Undefined variable “com” or class “com.mathw​orks.jmi.C​lassLoader​Manager.ge​tClassLoad​erManager” when trying to retrieve results from the R2019a Polyspace Job Manager

jobmanagerMATLAB Parallel ServerpolyspacePolyspace Bug Finder ServerPolyspace Code Prover Server

I am using Polyspace, Polyspace Server, MATLAB Parallel Server and the third-party scheduler PBSPro together. I'm able to successfully sends results from a desktop side using Polyspace to PBSPro scheduler and retrieve results from the Polyspace UI.
When I try downloading results from the Polyspace jobs manager, I get the error:
Error: An unexpected error occured during the Polyspace Job Manager execution
Undefined variable "com" or class "com.mathworks.jmi.ClassLoaderManager.getClassLoaderManager".|

Best Answer

This issue can occur if the MATLAB Parallel Server installation is missing or incomplete.
The following will resolve the error:
  1. Ensure MATLAB Parallel Server installation is complete
  2. Confirm the MATLAB Parallel Server installation is specified in the Generic cluster profile.
  3. Use the mjs_polyspace.conf in the R2019a installation to point to the Polyspace Server installation.