为什么会有这种警告?警告: 'sltest.SLTCustomizer' 类的对象已存在。无法清除此类或其任何超类。

조회 수: 5 (최근 30일)
Ren
Ren 2023년 9월 3일
댓글: Ren 2023년 9월 11일
启动matlab后出现警告
警告: 'sltest.SLTCustomizer' 类的对象已存在。无法清除此类或其任何超类。
> 位置:matlabshared.supportpkg.internal.ssi.preUninstallCmds
警告: 'sltest.HarnessCreateCustomizer' 类的对象已存在。无法清除此类或其任何超类。
> 位置:matlabshared.supportpkg.internal.ssi.preUninstallCmds

답변 (1개)

Amish
Amish 2023년 9월 11일
Hi Ren,
我了解到您正在尝试消除 MATLAB 动时出现的警告 由于我的语言限制,我用英语回答你的问题
问题看起来与您算机上的安装有关。我可以提出一些可能的解决方案来提供帮助
The warning message you're encountering, "An object of class 'sltest.SLTCustomizer' already exists. This class or any of its superclasses cannot be cleared," suggests that there is a custom test class or test customizer that has already been loaded into your MATLAB environment. Since it is an internal class of MATLAB, it is warning you that it cannot clear or overwrite this existing class.
You can solve this issue by checking for Existing Customizers. Check if you have previously created or loaded any custom test classes or customizers in your MATLAB session. These custom classes might have been defined in separate MATLAB files or scripts. If you find any, try to rename or remove them. If you are still facing the same issue, you can try to clear your workspace and restart MATLAB.
There might also be a possible case when your MATLAB path may have some conflicting classes or definitions. Make sure that the customizer that you are trying to load is not done through a MATLAB startup file. Ensure that you don't have any customizations in these startup files that could be causing the issue.
I hope these suggestions help you to solve your problem.
Regards,
Amish
  댓글 수: 1
Ren
Ren 2023년 9월 11일
Thank you for your answer! When i restart matlab, this warning did not occur again.
Anaway, than you!
Ren

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

카테고리

Help CenterFile Exchange에서 启动和关闭에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!