This error indicates the MATLAB Runtime directory specified (i.e. /Applications/MATLAB/v92 in this example) is missing important files.
Make sure the path to the runtime directory is specified correctly. The runtime is generally installed in /Applications/MATLAB/MATLAB_Runtime/v92 (for MATLAB R2017a).
If you have MATLAB R2017a installed on the system, you do not need the runtime. In that case, you would run the application with the following command:
bash run_untitled.sh /Applications/MATLAB_R2017a.app
If MATLAB R2017a is not installed on the system, you need the runtime. In that case, this would be the typical command to start the application:
bash run_untitled.sh /Applications/MATLAB/MATLAB_Runtime/v92
Best Answer