MATLAB: Error matlab r2017b

errorMATLAB

hey everyone, i can not use Matlab, next error appear in the start window
C:\Program Files\MATLAB\R2017b\toolbox\local\pathdef.m: Cannot open file: permission denied.
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
Undefined function 'usejava' for input arguments of type 'char'.
> In matlabrc (line 128)
Warning: Initializing MATLAB Graphics failed.
This indicates a potentially serious problem in your MATLAB setup, which should
be resolved as soon as possible. Error detected was:
MATLAB:UndefinedFunction
Undefined function or variable 'ismac'.
> In hgrc (line 163)
In matlabrc (line 134)
Warning: Failed to add default profiler filters.
> In matlabrc (line 143)
Undefined function or variable 'matlab.internal.environment.context.isMATLABOnline'.

Best Answer

You do not have read access to C:\Program Files\MATLAB\R2017b\toolbox\local\pathdef.m and possibly to other MATLAB files as well.
If this is your personal machine, reinstall MATLAB.
If this is an instituational machine, complain to the systems administrator that you do not have read access to the MATLAB directories.
Related Question