MATLAB: Do I receive a java error in the MATLAB Command Window after starting MATLAB

MATLAB

I receive the following java error in the MATLAB Command Window after startup:
java.lang.NoClassDefFoundError: ice/net/proxy/Proxy
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at
com.mathworks.mde.desk.StartupClassLoader.callClassForName(StartupClassLoader.java:304)
at
com.mathworks.mde.desk.StartupClassLoader.access$000(StartupClassLoader.java:27)
at
com.mathworks.mde.desk.StartupClassLoader$LoadInfo.<init>(StartupClassLoader.java:80)
at
com.mathworks.mde.desk.StartupClassLoader.addLoadInfo(StartupClassLoader.java:219)
at
com.mathworks.mde.desk.StartupClassLoader.createLoadInfos(StartupClassLoader.java:195)
at
com.mathworks.mde.desk.StartupClassLoader.access$500(StartupClassLoader.java:27)
at
com.mathworks.mde.desk.StartupClassLoader$2.run(StartupClassLoader.java:147)
at java.util.TimerThread.mainLoop(Unknown Source)
at java.util.TimerThread.run(Unknown Source)

Best Answer

The error is most likely the result of an old classpath.txt file from a previous release. Try the following to resolve the error:
1. In the MATLAB Command Window, type:
which -all classpath.txt
2. This should return $MATLAB/toolbox/local/classpath.txt, where $MATLAB is the directory in which MATLAB was installed. If MATLAB returns something else, remove the classpath.txt file.
If which -all classpath.txt returns nothing, reinstall MATLAB.
NOTE: DO NOT remove the classpath.txt file that is located in the $MATLAB/toolbox/local directory as this is required by MATLAB. If you accidentally remove this file, reinstall MATLAB.
Related Question