java.lang.NoClassDefFoundError SettingListener
19 次查看(过去 30 天)
显示 更早的评论
I get this error in Java when running a compiled application: Exception in thread "EventMgr Dispatcher" java.lang.NoClassDefFoundError: com/mathworks/services/settings/SettingListener. It does not happen all the time. ¿how can I solve this?
2 个评论
Tommy
2023-9-13
Can confirm. I had a similar issue and it turned out a couple 'format long g' commands were the culprit. Definitely a head scratcher but also an easy fix.
回答(1 个)
Aashita Dutta
2022-5-9
编辑:Aashita Dutta
2022-5-9
Hello!
I understand that you are facing issues while running a compiled application with the exception in thread- "EventMgr Dispatcher" “java.lang.NoClassDefFoundError”.
The "NoClassDefFoundError" error is thrown because MATLAB was not able to locate Java Runtime libraries that are used by the Integrated Development Environment (MATLAB IDE).
There are several possible causes to this issue:
- The installation is corrupted and there are “.jar” files missing from the MATLAB installation folder.
- The ”classpath.txt” file is missing references to Java Runtime libraries.
- One or several internal MATLAB functions are shadowed by custom functions.
Please try the following troubleshooting steps to resolve the issue:
- Please execute the following commands in the MATLAB command window to restore the search path to the installation default and then try to check if the issue persists:
>> restoredefaultpath
>> rehash toolboxcache
>> savepath
- If the issue persists, kindly perform a clean re-installation . Please refer to the following link for instructions regarding the same: https://www.mathworks.com/matlabcentral/answers/131519-how-do-i-perform-a-clean-installation-of-matlab-on-a-windows-system
- Please rename or remove any user-defined custom implementation of the functions from the MATLAB search path.
Thank you.
1 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Java Package Integration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!