MATLAB: Opening files in editor causes a “Load of Java classes failed” in Matlab R2011a under OSX 10.6.8

editorfilejavaMATLAB

Hi
Whenever I try to open a file in the editor (being .m or other), a error message pops up saying:
Error using ==> open at 163
Failed to open editor. Load of Java classes failed.
This is kind of annoying since requires me to edit files outside of matlab. Any idea what might be going on here?

Best Answer

Hi,
This can happen if you have downloaded third-party software such as EasyKrig which contains a 'message.m' file. If the third-party software is high in the order of your MATLAB path, the third-party software file 'message.m' can interfere with using the MATLAB editor.
To resolve this, you put the third-party sofware lower down in the order of your MATLAB path, by using the path tool. To do this, use the mouse to navigate to the File menu and select "Set Path..." Use the GUI buttons to move the folder name with the third-party software lower down in the order of your MATLAB path, e.g. to the bottom of the path.
You can use the following command to check if a message.m exists on the MATLAB path:
which -all message
I get as output:
C:\Program Files\MATLAB\R2011a\toolbox\matlab\lang\message.m
C:\Program Files\MATLAB\R2011a\toolbox\simulink\simulink\@dependencies\message.p % dependencies method
C:\Program Files\MATLAB\R2011a\toolbox\shared\filterdesignlib\@FilterDesignDialog\message.m % FilterDesignDialog method
C:\Program Files\MATLAB\R2011a\toolbox\shared\spcuilib\@uiservices\message.m % uiservices method
Related Question