Why do I receive the error "Undefined function or variable 'usejava'" when trying to start MATLAB 6.x (R12.x)?
이전 댓글 표시
I receive the following error when I attempt to start MATLAB:
??? Undefined function or variable 'usejava'.
Error in ==> /usr/local/matlabr12/toolbox/local/matlabrc.m
On line 58 ==> if usejava('Desktop')
MATLAB is also not recognizing any basic commands, such as "helpdesk":
helpdesk
The above command results in the following error:
??? Undefined function or variable 'helpdesk'.
채택된 답변
추가 답변 (1개)
Neil Guertin
2017년 11월 17일
Instead of rewriting pathdef.m manually, the safest and best way to regenerate it is as follows:
- Delete pathdef.m
- Recreate pathdef.m as an empty file
- Open MATLAB again (You will get some errors)
- Run the following commands:
restoredefaultpath
rehash toolboxcache
savepath
This will find all MathWorks toolboxes installed. Any third party toolboxes will have to be added again with "addpath" and "savepath".
카테고리
도움말 센터 및 File Exchange에서 Debugging and Analysis에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!