필터 지우기
필터 지우기

java.lang.​NoClassDef​FoundError SettingListener

조회 수: 26 (최근 30일)
Eduardo Beltrán
Eduardo Beltrán 2022년 5월 6일
댓글: Tommy 2023년 9월 13일
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
Eduardo Beltrán
Eduardo Beltrán 2022년 5월 26일
I had a "format bank" command in one of the functions. I removed that and the problem was solved.
Tommy
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
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
Thank you.
  댓글 수: 1
Jehan Jayanetti
Jehan Jayanetti 2022년 11월 30일
I have tried the above commands and I still receive the same error.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Java Package Integration에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by