Pathdef problem after changing account

Hi, I recently bought a laptop with windows 8 and I installed Matlab R2014a. After updating to windows 8.1 I created a new user account and deleted the old one because I had some problems. But now when I run Matlab I get the following messages in the command window. How can I fix this? Thank you.
C:\Program Files\MATLAB\R2014a\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: Duplicate directory name: C:\Program Files\MATLAB\R2014a\toolbox\local
Warning: Initializing Handle Graphics 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:undefinedVarOrClass
Undefined variable "graphics" or class "graphics.internal.initializeMATLABRoot".
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 at 110
Warning: Failed to add default profiler filters.
> In matlabrc at 149

Réponses (1)

Adam
Adam le 4 Sep 2014

0 votes

Have you tried running as administrator?

2 commentaires

Francesco
Francesco le 4 Sep 2014
If I run as administrator, it seems to be ok. But I wonder why I have those problems when I run it normally, since it was ok when I used the old account (both accounts are administrators). Also, I can't find the startup.m file anywhere.
Adam
Adam le 4 Sep 2014
Modifié(e) : Adam le 4 Sep 2014
Different versions of Windows seem to have had different requirements with respect to needing administrator privileges to run certain programs. I'm not really familiar with what these are, but I seem to remember some version where I had to always run Matlab as an administrator in order to save my path variable.
startup.m does not exist unless you create it yourself.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Startup and Shutdown dans Centre d'aide et File Exchange

Modifié(e) :

le 4 Sep 2014

Community Treasure Hunt

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

Start Hunting!

Translated by