"File cannot be found" error obtained when running compiled app

8 visualizzazioni (ultimi 30 giorni)
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.

Risposta accettata

MathWorks Support Team
MathWorks Support Team il 8 Set 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

Più risposte (0)

Categorie

Scopri di più su MATLAB Compiler in Help Center e File Exchange

Prodotti


Release

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by