"Startup Class Loader Error"

7 views (last 30 days)
Alex Tam
Alex Tam on 15 Mar 2019
Answered: Naga on 28 Jan 2025 at 8:50
Whenever I load up Matlab, I keep getting this warning:
Exception in thread "Startup Class Loader": java.lang.ExceptionInInitializerError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.mathworks.mde.desk.StartupClassLoader$LoadInfo.<init>(StartupClassLoader.java:106)
at com.mathworks.mde.desk.StartupClassLoader.createLoadInfos(StartupClassLoader.java:188)
at com.mathworks.mde.desk.StartupClassLoader.access$400(StartupClassLoader.java:25)
at com.mathworks.mde.desk.StartupClassLoader$2.run(StartupClassLoader.java:209)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.FileNotFoundException: Settings file malformed or could not be loaded for "comparisons": C:\Users\alextam\AppData\Roaming\MathWorks\MATLAB\R2018b\comparisons.settings LineNum=1 ColNum=11 invalid document structure
at com.mathworks.services.settings.Setting.nativeExists(Native Method)
at com.mathworks.services.settings.SettingPath.<init>(SettingPath.java:271)
at com.mathworks.comparisons.prefs.SettingsPreferenceRetriever.getSetting(SettingsPreferenceRetriever.java:41)
at com.mathworks.comparisons.prefs.SettingsPreferenceRetriever.getValue(SettingsPreferenceRetriever.java:28)
at com.mathworks.comparisons.prefs.ComparisonPreferenceManager.getValue(ComparisonPreferenceManager.java:70)
at com.mathworks.toolbox.difflink.server.AutoStart.<clinit>(AutoStart.java:17)
... 7 more
I've noticed that in some of my apps (the Signal Analyzer), I cannot save my session or my plots. Do I have to reinstall Matlab to fix this issue?

Answers (1)

Naga
Naga on 28 Jan 2025 at 8:50
It seems that the issue you're experiencing might be resolved by regenerating your MATLAB preferences. You can find a detailed guide on how to locate and regenerate these preferences at the following MATLAB Answers link: http://www.mathworks.com/matlabcentral/answers/99625-how-do-i-regenerate-my-matlab-preferences

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Products


Release

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!