MATLAB: Do I receive an error when I try to change the keyboard shortcut preferences in MATLAB 7.9 (R2009b)

MATLAB

I want to change my keyboard shortcut preferences in MATLAB 7.9 (R2009b), therefore I try to navigate to "File" -> "Preferences…" -> "Keyboard" -> "Shortcuts". However when I select the "Shortcuts" option I receive the following error:
PrefsDialog: unable to find class com.mathworks.mlwidgets.prefs.binding.KeyboardShortcutsPrefPanel, with method createPrefsPanel.
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
(...)
Caused by: java.lang.NoClassDefFoundError: com/jidesoft/shortcut/ShortcutField
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
(snip)

Best Answer

This error can occur if there is something wrong with your 'classpath.txt' file. Most probably a customized classpath.txt which was based on the classpath.txt from a previous MATLAB version is used. To see which classpath.txt there are on your MATLAB path you can use the following command:
which -all classpath.txt
If you do not need a customized classpath.txt, remove all founds classpath.txt files except $MATLABROOT\toolbox\local\classpath.txt.
If you do need a customized classpath.txt, please create a new one which you base on $MATLABROOT\toolbox\local\classpath.txt.