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

15 次查看(过去 30 天)

采纳的回答

MathWorks Support Team
编辑:MathWorks Support Team 2021-1-27
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 个评论
Ross Nye
Ross Nye 2017-11-29
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.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

标签

尚未输入任何标签。

产品


版本

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by