- Install Multiple MATLAB Runtime Versions on Single Machine: https://www.mathworks.com/help/compiler/install-the-matlab-runtime.html#bvf5_vk-5
- (see "Note" section) https://www.mathworks.com/help/compiler/magic-square-example-c-c-developer-tasks.html#bs4w1en
How to specify MCR version when running executable on Windows (problem with conflicting MCR versions)?
12 views (last 30 days)
Show older comments
I have a client who has another MCR installed and it is conflicting with the MCR that is required for my deployed application. I am trying to resolve the problem.
Some info online seems to indicate that the deployed application 'should' find the correct runtime, but info here suggests otherwise:
- Your library path may contain multiple versions of MATLAB Runtime. Applications launched without using the shell script use the first version listed in the path. From https://uk.mathworks.com/help/compiler/mcr-path-settings-for-run-time-deployment.html
Please can someone point me to the correct shell command sequence to specify the runtime and the deployed application path?
Note: The deployed application is currently being executed using a Java processbuilder object, that simply includes a path to the executable. It seems straightforward to include additional arguments as if I were just using the Windows command prompt.
0 Comments
Answers (1)
Shan
on 13 Sep 2022
On Windows, you can install multiple versions of MCR and the MCR installer automatically sets the path. Manuallly modifying the path or using a shell script to lauch the compiled application is required if the the app is running on Linux or macOS. More details can be found in the following documentation:
Can you elaborate on how the MCRs are "conflicting" on the user's machine? Is the user getting any error messages?
3 Comments
Bruno Luong
on 16 Sep 2022
Edited: Bruno Luong
on 16 Sep 2022
Shoting in the dark here but make sure the MCR installation is done with administrator privilege, then restart the PC.
See Also
Categories
Find more on Introduction to Installation and Licensing 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!