MATLAB Answers

parpool() (R2014a) fails on Linux

27 views (last 30 days)
bge on 17 Jul 2015
Commented: emjey on 4 Oct 2019
When executing the command parpool() from the MATLAB prompt, with or without arguments, the following error occurs:
Undefined variable "com" or class "com.mathworks.toolbox.distcomp.pmode.SessionInfo.NULL_SESSION_INFO".
Error in parpool (line 96) sessionInfo = com.mathworks.toolbox.distcomp.pmode.SessionInfo.NULL_SESSION_INFO;
The error message seems to be helpless. How can I fix it?
Eric Sillekens
Eric Sillekens on 4 Oct 2017
Did you start matlab with the -nojvm option, I got the same error when staring matlab using "matlab -nodisplay -nojvm"and and starting matlab using "matlab -nodisplay" solved it for me.

Sign in to comment.

Answers (2)

Rafnuss on 9 Dec 2015
I had the same problem when using (as documented here) :
matlab -nojvm -nodisplay -nosplash
But I manage to make it work without the -nojvm
matlab -nodisplay -nosplash
  1 Comment
Edric Ellis
Edric Ellis on 11 Dec 2015
Parallel Computing Toolbox requires the JVM...

Sign in to comment.

Richa Gupta
Richa Gupta on 20 Jul 2015
Can you provide the complete error message? Are you able to validate the profile successfully? Also, did you start MATLAB with -"nojvm" option?

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!