previously accessible file is inacessible.

5 次查看(过去 30 天)
Hello,
I had removed file/s strsplit.m and a couple of others from matlab's core directory based on one of the posts I read a couple of months ago as it was creating a java exception error (something I recall vaguely). But now, I get an irritating pop-up (kind of) everytime I click on the Matlab command window/variables window. Could someone please help me fix it?
Please refer to the image: it reads previously accessible file is now inaccessible workspacefun 329. I am on linux OS, matlab 2016a.
Thanks,
  3 个评论
RPatel
RPatel 2017-10-30
Because the reason in the first place why I removed it was it caused jave exception error... And I fear if I put it back, i will have it again...
Stephen23
Stephen23 2017-10-30
编辑:Stephen23 2017-10-30
"I had removed file/s ... from matlab's core directory..."
Ouch! You should never delete/rename/edit/... any files in the MATLAB installation directories. Who told you to do that? Perhaps this was the advice which you (incorrectly) followed:
The advice given in that thread was to remove any user functions with those names. You removed the wrong files, because you have removed the installed MATLAB files, which was a really really bad idea. All kinds of dependent functions could be affected when you remove some random file from the MATLAB toolboxes, leaving you with unpredictable behavior of your installed MATLAB.
Oh well, time to reinstall MATLAB!

请先登录,再进行评论。

采纳的回答

Jan
Jan 2017-10-30
编辑:Jan 2017-10-30
I had removed file/s strsplit.m and a couple of others from matlab's
core directory
This is really scary. This idea is really off track. Matlab cannot not work properly, if you remove essential files from its toolbox. You cannot solve a problem by removing the tools, but surely Matlab must crash afterwards.
General rule: *Never* remove files from Matlab's toolboxes.
It is a good idea to work with user privileges only, such that you cannot even modify Matlab's function by accident.
I do not believe that the existence of strsplit.m in the toolbox path causes a "Java exception error". Please post the code, which causes the error and a complete copy of the error message. Then it might be possible to give a better advice than destroying the toolbox folders.
First of all, restore the removed files.
Afterwards restore the hash values of the path:
rehash toolboxcache
  1 个评论
RPatel
RPatel 2017-10-30
Thanks, I have put back the removed files, and did as you asked, It seems to work (for now atleast).
Cheers!

请先登录,再进行评论。

更多回答(0 个)

类别

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

Community Treasure Hunt

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

Start Hunting!

Translated by