MATLAB: Do I receive the “apps-default” warning when running the deployed standalone executable or shared library from a UNIX or Linux shell

apps-defaultfoundlatestMATLABnotsetenvversionwarningx11

I create a standalone executable or shared library using the MATLAB Compiler. When I run it within my UNIX/Linux shell (e.g. csh/tcsh) I get an "apps-default" warning:
 
Warning: latest version of matlab app-defaults file not found.
Contact your system administrator to have this file installed.
Although I get the above warning when running my deployed program, it does not prevent me from running my application.

Best Answer

The Linux/UNIX environment variable XAPPLRESDIR should be set to the below path before the standalone executable or shared library runs.
If running against the MCR:
setenv XAPPLRESDIR <mcrroot>/<version>/X11/app-defaults
where mcrroot is the root installation folder of the MCR, and version is the version of the MCR.
If running against MATLAB:
setenv XAPPLRESDIR <matlabroot>/X11/app-defaults
where matlabroot is the root installation folder of MATLAB.