I have problem when I start the matlab
Show older comments
When I start the matlab, an error message comes out despite I did nothing yet.
here's the error message;
Execution of script pathdef as a function is not supported:
C:\Program Files\MATLAB\R2022b\toolbox\local\pathdef.m
Warning: MATLAB did not appear to successfully set the search path. To recover for this session of MATLAB, type "restoredefaultpath;matlabrc". To find out how to avoid this
warning the next time you start MATLAB, type "docsearch problem path" after recovering for this session.
Undefined function 'usejava' for input arguments of type 'char'.
Warning: MATLAB did not appear to successfully set the search path. To recover for this session of MATLAB, type "restoredefaultpath;matlabrc". To find out how to avoid this
warning the next time you start MATLAB, type "docsearch problem path" after recovering for this session.
Warning: Initializing Java preferences failed in matlabrc.
This indicates a potentially serious problem in your MATLAB setup, which should be resolved as soon as possible. Error detected was:
MATLAB:UndefinedFunction
Unrecognized function or variable 'initdesktoputils'.
Student License -- for use by students to meet course requirements
and perform academic research at degree granting institutions only.
com.mathworks.mvm.exec.MvmExecutionException: internal.matlab.desktop.editor.breakpointsForAllFiles
at com.mathworks.mvm.exec.NativeFutureResult.nativeGet(Native Method)
at com.mathworks.mvm.exec.NativeFutureResult.get(NativeFutureResult.java:62)
at com.mathworks.mvm.exec.FutureResult.getInternal(FutureResult.java:413)
at com.mathworks.mvm.exec.FutureFevalResult.getInternal(FutureFevalResult.java:49)
at com.mathworks.mvm.exec.FutureResult.get(FutureResult.java:263)
at com.mathworks.mlservices.MatlabDebugServices$3.run(MatlabDebugServices.java:978)
at com.mathworks.mvm.exec.NativeFutureResult.callRunnable(NativeFutureResult.java:146)
at com.mathworks.mvm.exec.NativeFutureResult.done(NativeFutureResult.java:138)
Caused by: com.mathworks.mvm.exec.MvmRuntimeException: Unrecognized function or variable 'internal.matlab.desktop.editor.breakpointsForAllFiles'.
Unrecognized function or variable 'connector.internal.lifecycle.callConnectorStarted'.
Unrecognized function or variable 'fullfile'.
Error occurred during background graphics initialization: Undefined function 'fullfile' for input arguments of type 'char'.
Unrecognized function or variable 'matlab.internal.debugger.breakpoints.initBreakpointsStoreInstance'.
Unrecognized function or variable 'matlab.internal.codingui.warmupProgrammingAids'.
Unrecognized function or variable 'matlab.internal.addons.addToMessageCatalog'.
Unrecognized function or variable 'matlab.internal.addons.addToMessageCatalog'.
Unrecognized function or variable 'matlab.internal.addons.addToMessageCatalog'.
Unrecognized function or variable 'matlab.supportpackagemanagement.internal.getInstalledSupportPackagesInfo'.
Unrecognized function or variable 'matlab.internal.debugger.breakpoints.initBreakpointsStoreInstance'.
Unrecognized function or variable 'matlab.internal.debugger.breakpoints.initBreakpointsStoreInstance'.
Unrecognized function or variable 'matlab.internal.codingui.warmupProgrammingAids'.
Unrecognized function or variable 'matlab.internal.codingui.warmupProgrammingAids'.
Unrecognized function or variable 'matlab.internal.debugger.breakpoints.initBreakpointsStoreInstance'.
Unrecognized function or variable 'pwd'.
Unrecognized function or variable 'matlab.internal.codingui.warmupProgrammingAids'.
Unable to resolve the name 'matlab.internal.doc.updateConnectorDocroot'.
Unable to resolve the name 'matlab.internal.doc.updateCustomDocContent'.
Unable to resolve the name 'matlab.internal.doc.search.configureSearchServer'.
I don't know what should I do. Restarting the program doesn't work.
1 Comment
Jan
on 30 Jan 2023
The error message tells you to restore the default path:
restoredefaultpath;matlabrc
Maybe you need admin privileges to do so. Anyway, it is a good strategy to follow such advices given in the error messages.
Accepted Answer
More Answers (0)
Categories
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!