com.mathwo​rks.util.S​hutdownRun​timeExcept​ion error

38 views (last 30 days)
In the past few days I've been getting this message when a job is completed and MATLAB tries to shut down:
com.mathworks.util.ShutdownRuntimeException: Java is shutting down
at Method)
at com.mathworks.widgets.debug.DebuggerManager$ActionShell.<init>(
at com.mathworks.widgets.debug.DebuggerManager$ActionShell.<init>(
at com.mathworks.widgets.debug.DebuggerManager$DebuggerShellActions$1.<init>(
at com.mathworks.widgets.debug.DebuggerManager$DebuggerShellActions.<clinit>(
at com.mathworks.widgets.debug.DebuggerManager.getContinueAction(
at com.mathworks.matlabserver.worker.service.breakpoint.impl13b.DebuggerInstaller.<init>(
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at com.mathworks.matlabserver.a.b.R(Unknown Source)
at com.mathworks.matlabserver.a.b.<init>(Unknown Source)
at com.mathworks.matlabserver.a.b.<init>(Unknown Source)
at com.mathworks.matlabserver.a.f.initialized(Unknown Source)
at Source)
at Source)
at java.util.concurrent.Executors$ Source)
at Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$ Source)
at Source)
I have no idea what this means, so I would very much appreciate your help. Thanks!
Sascha F
Sascha F on 25 Jan 2017
Edited: Sascha F on 25 Jan 2017
Hey, I am having the same problem while executing a bash script that calls matlab programs which in turn call the "quit" function. What exactly do you mean by "java path"?

Sign in to comment.

Answers (1)

Tim Darrah
Tim Darrah on 15 Aug 2022
Old question, but in case anyone ever stumbles upon this. I had this error when calling
What should be called is
  1 Comment
Walter Roberson
Walter Roberson on 16 Aug 2022
Edited: Walter Roberson on 16 Aug 2022
The times that I have used exit(), it has always worked for me. exit is documented as being the same a quit which is a function (it can take optional arguments.)

Sign in to comment.


Find more on Startup and Shutdown in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!