environment variable.
A. Locate the name of the environment variable to set, using the table
below:
Operating System Environment Variable
================ ====================
Windows PATH
Linux LD_LIBRARY_PATH
Solaris LD_LIBRARY_PATH
Mac DYLD_LIBRARY_PATH
B. Set the path by doing one of the following:
On Windows systems:
* Add the MCR directory to the environment variable by opening a
command prompt and issuing the DOS command, specifying either
win32 or win64:
set PATH=C:\Program Files\MATLAB\MATLAB Compiler Runtime\v78\runtime\{win32|win64};
Alternately, for Windows, add the following pathname:
C:\Program Files\MATLAB\MATLAB Compiler Runtime\v78\runtime\{win32|win64}
to the PATH environment variable, specifying either win32 or win64,
by doing the following:
1. Select the My Computer icon on your desktop.
2. Right-click the icon and select Properties from the menu.
3. Select the Advanced tab.
4. Click Environment Variables.
On UNIX systems:
* Add the MCR directory to the environment variable by issuing
the following commands:
Linux
setenv LD_LIBRARY_PATH
<mcr_root>/v78/runtime/glnx86:
<mcr_root>/v78/sys/os/glnx86:
<mcr_root>/v78/sys/java/jre/glnx86/jre1.6.0/lib/i386/native_threads:
<mcr_root>/v78/sys/java/jre/glnx86/jre1.6.0/lib/i386/server:
<mcr_root>/v78/sys/java/jre/glnx86/jre1.6.0/lib/i386
setenv XAPPLRESDIR <mcr_root>/v78/X11/app-defaults
Solaris64
setenv LD_LIBRARY_PATH /usr/lib/lwp:
<mcr_root>/v78/runtime/sol64:
<mcr_root>/v78/sys/os/sol64:
<mcr_root>/v78/sys/java/jre/sol64/jre1.6.0/lib/sparcv9/native_threads:
<mcr_root>/v78/sys/java/jre/sol64/jre1.6.0/lib/sparcv9/server:
<mcr_root>/v78/sys/java/jre/sol64/jre1.6.0/lib/sparcv9
setenv XAPPLRESDIR <mcr_root>/v78/X11/app-defaults
Linux x86-64
setenv LD_LIBRARY_PATH
<mcr_root>/v78/runtime/glnxa64:
<mcr_root>/v78/sys/os/glnxa64:
<mcr_root>/v78/sys/java/jre/glnxa64/jre1.6.0/lib/amd64/native_threads:
<mcr_root>/v78/sys/java/jre/glnxa64/jre1.6.0/lib/amd64/server:
<mcr_root>/v78/sys/java/jre/glnxa64/jre1.6.0/lib/amd64
setenv XAPPLRESDIR <mcr_root>/v78/X11/app-defaults
Mac
setenv DYLD_LIBRARY_PATH
<mcr_root>/version/runtime/maci:
<mcr_root>/version/sys/os/maci:
<mcr_root>/version/bin/maci:
/System/Library/Frameworks/JavaVM.framework/JavaVM:
/System/Library/Frameworks/JavaVM.framework/Libraries
setenv XAPPLRESDIR <mcr_root>/version/X11/app-defaults
Best Answer