Why do I receive the error "Warning: An error occurred while reading the desktop configuration file" when launching MATLAB?
조회 수: 16 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2016년 4월 26일
편집: MathWorks Support Team
2021년 1월 27일
Why do I receive the error "Warning: An error occurred while reading the desktop configuration file" when launching MATLAB?
채택된 답변
MathWorks Support Team
2021년 1월 25일
편집: 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
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 Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!