Why do I receive the error "Warning: An error occurred while reading the desktop configuration file" when launching MATLAB?

52 views (last 30 days)

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 25 Jan 2021
Edited: MathWorks Support Team on 27 Jan 2021
If you are launching MATLAB and receiving the following error you might be using a different version of Java than the one shipped with MATLAB. 
ERROR: Warning: An error occurred while reading the desktop configuration file
In order to check the version of Java that MATLAB is using, launch MATLAB and run the following command. 
version -java
Check for a MATLAB_JAVA environment variable set on your system. If a MATLAB_JAVA environment variable is set, remove it and relaunch MATLAB twice to see if the issue persists. 
If this does not help, it was also possible to resolve this via the following commands:
>> restoredefaultpath
>> rehash toolboxcache
>> savepath
If you are still unable to start MATLAB properly after removing the MATLAB_JAVA environment variable and doing the commands above, please contact MathWorks Support. They can be reached here:
  1 Comment
Ross Nye
Ross Nye on 29 Nov 2017
I'm having the same problem (and I don't have a MATLAB_JAVA either) and am now wondering the following
  • Why is my Matlab, 2017a, using such an old version of Java, 1.7.0 u60? It was released in 2014.
  • Why is my Matlab, which clearly has to be newer than your version, using an older version of Java than your is?
  • Why didnt TMW Support team respond to your query when someone there last edited this post, which was after you posted.

Sign in to comment.

More Answers (0)

Categories

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

Tags

No tags entered yet.

Products


Release

R2016b

Community Treasure Hunt

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

Start Hunting!