Borrar filtros
Borrar filtros

java.lang.​NoClassDef​FoundError SettingListener

30 visualizaciones (últimos 30 días)
Eduardo Beltrán
Eduardo Beltrán el 6 de Mayo de 2022
Comentada: Tommy el 13 de Sept. de 2023
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 comentarios
Eduardo Beltrán
Eduardo Beltrán el 26 de Mayo de 2022
I had a "format bank" command in one of the functions. I removed that and the problem was solved.
Tommy
Tommy el 13 de Sept. de 2023
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.

Iniciar sesión para comentar.

Respuestas (1)

Aashita Dutta
Aashita Dutta el 9 de Mayo de 2022
Editada: Aashita Dutta el 9 de Mayo de 2022
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
Thank you.
  1 comentario
Jehan Jayanetti
Jehan Jayanetti el 30 de Nov. de 2022
I have tried the above commands and I still receive the same error.

Iniciar sesión para comentar.

Categorías

Más información sobre Java Package Integration en Help Center y File Exchange.

Productos


Versión

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by