Standalone executable can't find Matlab Runtime, even though Runtime is installed. How do I fix this?
84 views (last 30 days)
Show older comments
Greg
on 26 Apr 2017
Answered: Shruthi Mysore Sadashiva
on 2 Aug 2017
I successfully created a standalone executable from my Matlab code. I can compile it and run it on the same computer, and all looks good.
I now want to try running it on a "target" computer. I compiled the executable using Matlab 2016a (Runtime 9.0.1). I downloaded the same version of Matlab Runtime on the target computer (9.0.1), and I can see it in C:/Program Files/MATLAB/MATLAB Runtime/v901/. (There's also an older version of Runtime, v85.)
However, when I try to run the executable on the target computer it gives me this error:
Could not find version 9.0.1 of the MATLAB Runtime.
Attempting to load mclmcrrt9_0_1.dll.
Please install the correct version of the MATLAB Runtime.
But as far as I know, I do have Runtime 9.0.1 installed! Why can't my executable find it?
0 Comments
Accepted Answer
Shruthi Mysore Sadashiva
on 2 Aug 2017
I understand that you have a correct version of MATLAB runtime installed in the target machine. You could find the list of different mcr installers on : https://www.mathworks.com/products/compiler/mcr.html
Along with this, your system variable "PATH" should contain the installed MATLAB Runtime folder path. This document link gives the information on the same: https://www.mathworks.com/help/compiler_sdk/cxx/mcr-path-settings-for-run-time-deployment.html#btnytqp-5
0 Comments
More Answers (0)
See Also
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!