Matlab R2012b - Java Exception, Error Starting Desktop

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.
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
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
Jordan Schmidt 2012 年 10 月 17 日

2 投票

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 件のコメント

Bart Geurten
Bart Geurten 2012 年 10 月 18 日
thanks a lot Jordan. This fixed the problem for me. I just changed the ownership on the preference directory with the chown command to my account.

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

その他の回答 (1 件)

Jonathan Wang
Jonathan Wang 2012 年 11 月 21 日

8 投票

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 件のコメント

Matt
Matt 2013 年 1 月 14 日
thanks, this worked for me. Wonder how it got messed up, last week there was no problem....
Freddy Mendoza
Freddy Mendoza 2013 年 1 月 28 日
This also works for me with MATLAB R2012b on Ubuntu 12.04
thanks!!
Markus Schmidt
Markus Schmidt 2013 年 5 月 16 日
編集済み: Markus Schmidt 2013 年 5 月 16 日
Correct solution for MATLAB R2013a on ubuntu 12.04.2.
I tried to start via terminal a second instance of matlab with a different user. Perhaps this messed up my profile...
Saleh
Saleh 2014 年 9 月 16 日
Thanks! Correct solution for MATLAB R2012b on Mac OS X 10.9.4. I tried to run MATLAB from terminal using 'sudo' command. After that I was getting the same error. This fixed the problem.
Fan Meng
Fan Meng 2015 年 6 月 1 日
Thanks a lot! It works on for Matlab 2014a on Ubuntu 15.04.
Jonathan Lee
Jonathan Lee 2015 年 6 月 9 日
Thanks! Correct solution for Matlab 2014b on ubuntu 14.04
Vahid Daneshmand
Vahid Daneshmand 2015 年 9 月 6 日
Thanks a lot! That worked for me for MATLAB R2015a on UBUNTU 15.04. :-)
Taiping
Taiping 2016 年 4 月 11 日
Thanks! It works for Matlab 2014a on ubuntu 12.04 LTS
Deepashree Gurumurthy
Deepashree Gurumurthy 2016 年 8 月 10 日
Thank you !! worked for Matlab 2016a on Ubuntu 14.04 ! :)
Keyu Wu
Keyu Wu 2017 年 6 月 13 日
Thank you !! worked for Matlab 2017a on Ubuntu 16.04 ! :)
Hector Gabriel Rodriguez
Hector Gabriel Rodriguez 2017 年 9 月 21 日
Thank you !! worked for Matlab 2016b on Ubuntu 17.04 ! :)
Spyridon Daskalakis
Spyridon Daskalakis 2018 年 2 月 22 日
Thank you mate !! worked for Matlab 2017b on Ubuntu 16.04 ! :)
Rajdeep Bhattacharjee
Rajdeep Bhattacharjee 2018 年 4 月 22 日
編集済み: Rajdeep Bhattacharjee 2018 年 4 月 22 日
Thanks for this wonderful solution :-) | Matlab R2017b Ubuntu 16.06
John Emad
John Emad 2018 年 11 月 21 日
THANK YOU ... worked on matlab R17b ubuntu 16.04

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

カテゴリ

ヘルプ センター および File ExchangeStartup and Shutdown についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by