previously accessible file is inacessible.

조회 수: 9 (최근 30일)
RPatel
RPatel 2017년 10월 30일
댓글: RPatel 2017년 10월 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