How to specify MCR version when running executable on Windows (problem with conflicting MCR versions)?

12 views (last 30 days)
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:
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.

Answers (1)

Shan
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
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.

Sign in to comment.

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Products


Release

R2011b

Community Treasure Hunt

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

Start Hunting!