"File cannot be found" error obtained when running compiled app
1 view (last 30 days)
Show older comments
MathWorks Support Team
on 8 Sep 2020
Answered: MathWorks Support Team
on 23 Feb 2021
Why do I get the following error when running the standalone app file (.EXE) generated on compiling my app in MATLAB R2019B?
Error using matlab.ui.control.internal.model.mixin.IconableComponent/set.Icon (line 54)
You have specified a file that cannot be found or is not an image.
Specify a file name that is on the MATLAB path, or use a full or relative path.
The required files and images have been compiled along with the app, and the issue is only observed on a particular system.
Accepted Answer
MathWorks Support Team
on 8 Sep 2020
When running the standalone app, all files compiled into the application will automatically be on the MATLABPATH at runtime, and hence this error should ideally not be generated. The cause for this error to be generated on the particular system could be a cache corruption on the particular system. Deleting the following cache folder and restarting the system should fix the issue:
%TEMP%\%UserName%\mcrCache9.7
0 Comments
More Answers (0)
See Also
Categories
Find more on MATLAB Compiler in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!