MATLAB: How to run a specific version of matlab in non java mode using -nojvm

non java mode

Hello!
I need to use matlab in non-java mode using the command matlab -nojvm. I have multiple versions of matlab installed, R2014b and R2019a. When I open the non-java matlab window, it automatically opens the R2019a version. However, I need to use R2014b. How do I specify the version of matlab I want to open in non java mode?
Thank you,
Yuqi

Best Answer

You could specify the full path to the MATLAB executable that you want to launch either in the command prompt or in the target of a shortcut.