MATLAB 2016a error: "The desktop configuration was not saved successfully"

86 ビュー (過去 30 日間)
Stav
Stav 2016 年 8 月 17 日
コメント済み: denny 2021 年 12 月 7 日
After a fresh install of MATAB 2016a (along side MATLAB 2015b) on a Win7 machine I get the following error message whenever I start MATLAB:
The desktop configuration was not saved successfully
I've seen previous posts about this problem, the suggestion on all of them boils down to checking file permissions for the preferences directory (i.e the directory returned by prefdir) and if that doesn't work then deleting MATLABDesktop.xml and restarting MATLAB.
I've tried both approaches and in fact the above message appears also when MATLAB is run as Administrator. It seems that MATLAB is able to write the MATLABDesktop.xml (it reappears after I delete it and restart MATLAB) but the file contents are always empty.
Possibly related: MATLAB R2016a doesn't save user setting. Similar to that case I have Oracle Java 8 set as MATLAB_JAVA, but I do not get any exception on startup except for the above error. My MATLAB 2015b installation uses the same MATLAB_JAVA but does not fail in saving my preferences.
Any help is appreciated.
  2 件のコメント
Ivo
Ivo 2016 年 8 月 23 日
Same here on GNU/Linux (Ubuntu 16.04 64 bit), using a custom MATLAB_JAVA (java-8-openjdk-amd64). I am using a custom JAVA environment because it resolves some bugs wrt full-screen images.
Blake
Blake 2017 年 2 月 18 日
I'm having this issue as well. I'm on Windows 10 Pro and using a custom MATLAB_JAVA (Server JRE 1.8.0.121). I'm on MATLAB Student 2016b.
Using this particular version of Java also breaks the Help documentation, disallowing the contextual menu, copy/paste, and bookmark links in the documentation.
I can't go back to default MATLAB_JAVA path because MATLAB crashes whenever my computer resumes from sleep. Really frustrating.

サインインしてコメントする。

回答 (2 件)

John Anzola
John Anzola 2020 年 1 月 11 日
Good day
In my case I solved it with:
cd ~/.matlab
sudo chmod a+w -R R2018a/
regards
  3 件のコメント
Quang Tan NGUYEN
Quang Tan NGUYEN 2021 年 6 月 15 日
thanks it's done as your guide
mohamed saber
mohamed saber 2021 年 8 月 25 日
Thanks it worked

サインインしてコメントする。


denny
denny 2017 年 4 月 6 日
you should set your jre to jdk1.7.0_xx. The jdk1.8.0_121 can not pass the building jar.
  4 件のコメント
Jiayi
Jiayi 2019 年 4 月 4 日
Many thanks to @Yong's answer. Works perfect with R2016b under Ubuntu 18.04.
denny
denny 2021 年 12 月 7 日
Ok, thank you, I works on Windows.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by