Info

This question is closed. Reopen it to edit or answer.

Error messages on launching of MATLAB and Simulink

1 view (last 30 days)
I got following kind of message in command window on the launch of MATLAB and simulink
Cannot create file migratePref.txt!
java.io.IOException: The system cannot find the path specified
at java.io.WinNTFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(File.java:1012)
at com.mathworks.services.Prefs.readMigrateFlag(Prefs.java:2153)
at com.mathworks.services.Prefs.createTwoWayMapPrefsSettings(Prefs.java:373)
at com.mathworks.services.Prefs.<clinit>(Prefs.java:214)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at com.mathworks.util.PostVMInit$StartupClass.init(PostVMInit.java:156)
at com.mathworks.util.PostVMInit.perform(PostVMInit.java:187)
Cannot write to preference file "matlab.prf" in "C:\MATLAB_preferences ".
Check file permissions.
Cannot write to preference file "matlab.prf" in "C:\MATLAB_preferences ".
Check file permissions.
Cannot write to preference file "matlab.prf" in "C:\MATLAB_preferences ".
Check file permissions.
The desktop configuration was not saved successfully
Cannot write to preference file "matlab.prf" in "C:\MATLAB_preferences ".
Check file permissions.
>> simulink
An error was encountered while saving the command history
java.io.FileNotFoundException: C:\MATLAB_preferences \History.xml (The system cannot find the path specified)
at java.io.RandomAccessFile.open0(Native Method)
at java.io.RandomAccessFile.open(RandomAccessFile.java:316)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:243)
at com.mathworks.mde.cmdhist.AltHistoryCollection$CommandSaver.run(AltHistoryCollection.java:1214)
at java.lang.Thread.run(Thread.java:748)
Cannot write to preference file "matlab.prf" in "C:\MATLAB_preferences ".
Check file permissions.
>>
Database operation order error in . (unknown) (IN DIAGNOSTIC OF SIMULINK)
Please advise the step wise solution in detail. that how can I fix the problem. The abovesaid links are not understandable to me.

Answers (0)

Community Treasure Hunt

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

Start Hunting!