migratePref.txt problem
12 次查看(过去 30 天)
显示 更早的评论
matlab command prompt display this message: java.lang.IllegalArgumentException: File migratePref.txt should only contain 'T' or 'F'! at com.mathworks.services.Prefs.readMigrateFlag(Prefs.java:2196) at com.mathworks.services.Prefs.createTwoWayMapPrefsSettings(Prefs.java:375) at com.mathworks.services.Prefs.<clinit>(Prefs.java:213) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at com.mathworks.util.PostVMInit$StartupClass.init(PostVMInit.java:165) at com.mathworks.util.PostVMInit.perform(PostVMInit.java:196
Why? I check migratePref and is empty. That is why that message is shown. How do I solve this error?
0 个评论
采纳的回答
Zenin Easa Panthakkalakath
2018-9-24
Try renaming the file C:\Users\BrendanM\AppData\Roaming\MathWorks\MATLAB\R2018a\matlabprefs.mat to something else and try again.
Please refer to a similar case on MATLAB answers here: https://www.mathworks.com/matlabcentral/answers/397603-how-do-i-fix-this-error-on-matlab-startup-java-lang-illegalargumentexception-file-migratepref-txt
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!