为什么会有这种警告?警告: 'sltest.SLTCustomizer' 类的对象已存在。无法清除此类或其任何超类。
4 views (last 30 days)
Show older comments
启动matlab后出现警告
警告: 'sltest.SLTCustomizer' 类的对象已存在。无法清除此类或其任何超类。
> 位置:matlabshared.supportpkg.internal.ssi.preUninstallCmds
警告: 'sltest.HarnessCreateCustomizer' 类的对象已存在。无法清除此类或其任何超类。
> 位置:matlabshared.supportpkg.internal.ssi.preUninstallCmds
0 Comments
Answers (1)
Amish
on 11 Sep 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
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!