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

5 visualizaciones (últimos 30 días)
Ren
Ren el 3 de Sept. de 2023
Comentada: Ren el 11 de Sept. de 2023
启动matlab后出现警告
警告: 'sltest.SLTCustomizer' 类的对象已存在。无法清除此类或其任何超类。
> 位置:matlabshared.supportpkg.internal.ssi.preUninstallCmds
警告: 'sltest.HarnessCreateCustomizer' 类的对象已存在。无法清除此类或其任何超类。
> 位置:matlabshared.supportpkg.internal.ssi.preUninstallCmds

Respuestas (1)

Amish
Amish el 11 de Sept. de 2023
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 comentario
Ren
Ren el 11 de Sept. de 2023
Thank you for your answer! When i restart matlab, this warning did not occur again.
Anaway, than you!
Ren

Iniciar sesión para comentar.

Categorías

Más información sobre 启动和关闭 en Help Center y File Exchange.

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!