Matlab R2012b - Java Exception, Error Starting Desktop
6 次查看(过去 30 天)
显示 更早的评论
Hi folks,
I updated my Matlab R2012b on my Ubuntu system (11.04). The installation process went smoothly, but when I want to start Matlab, I encounter the following error, before the programm shuts down.
java.lang.runtimeexception: std::exception for "matlab.desktop.currentfolder.GroupColumn": Cannot write to the level specified even after multiple times of retry. It'S mostly due to no write permission.
![](https://www.mathworks.com/matlabcentral/images/broken_image.png)
It seems to be a rights or ownership problem because if I start Matlab with the sudo command, it starts up fine. I could not find the libary or the file Matlab tries to edit. Any ideas?
thanks
Bart
1 个评论
Timothy Hilton
2012-10-16
Same thing happens to me on a macbook. Same exception, exception disappears when starting matlab using sudo. Any help appreciated!
-Tim
采纳的回答
Jordan Schmidt
2012-10-17
Most likely you don't have write permissions on your preferences directory. You can determine the location of the MATLAB preferences folder by running the PREFDIR command at the MATLAB prompt. If for some reason you're unable to fix the permissions, you can try changing the prefs directory location:
更多回答(1 个)
Jonathan Wang
2012-11-21
following command could also solve your issue:
sudo chmod -R a+rw ~/.matlab
You need option "-R" here to apply the change to all of its sub-folders too.
Hope it helps. :-)
14 个评论
Rajdeep Bhattacharjee
2018-4-22
编辑:Rajdeep Bhattacharjee
2018-4-22
Thanks for this wonderful solution :-) | Matlab R2017b Ubuntu 16.06
另请参阅
类别
在 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!