What does this error message mean?

7 views (last 30 days)
Lindsey Bornhoeft
Lindsey Bornhoeft on 7 Dec 2015
Answered: Walter Roberson on 7 Dec 2015
When I open Matlab, this appears in red in the command window:
The desktop configuration was not saved successfully
java.io.FileNotFoundException: \\bme-fs-student\graduate$\lrbornhoeft\Application Data\MathWorks\MATLAB\R2014a\matlab.prf (Access is denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at com.mathworks.services.Prefs.save(Prefs.java:311)
at com.mathworks.services.Prefs$SavePrefsThread.run(Prefs.java:719)
ALSO, when I try to open a saved script, it gives this error:
Error using open (line162)
Failed to open Matlab Editor.
Thank you for your time and help,
Lindsey

Answers (1)

Walter Roberson
Walter Roberson on 7 Dec 2015
MATLAB is trying to save your preferences to the file
\\bme-fs-student\graduate$\lrbornhoeft\Application Data\MathWorks\MATLAB\R2014a\matlab.prf
but is not permitted to access the file. Either the file already exists and has security rights set that do not permit you to access the file, or else the directory exists and has security rights set that do not permit you to create new files there.
It is possible that the file exists but is owned by Administrator. It is also possible that there is a network configuration problem that leads the network to think you are not the owner of that file because you created it on a different computer that also has access to that shared drive.
Try using fileattrib to examine the file and directory
fileattrib \\bme-fs-student\graduate$\lrbornhoeft\Application Data\MathWorks\MATLAB\R2014a\matlab.prf
fileattrib \\bme-fs-student\graduate$\lrbornhoeft\Application Data\MathWorks\MATLAB\R2014a

Categories

Find more on Environment and Settings 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!