Products & Services Solutions Academia Support User Community Company

Learn more about MATLAB Compiler   

Directories Required for Run-Time Deployment

General Path Guidelines

Regardless of platform, be aware of the following guidelines with regards to placing specific folders on the path:

Path for Java Applications on All Platforms

When your users run applications that contain compiled MATLAB code, you must instruct them to set the path so that the system can find the MCR.

Windows Path for Run-Time Deployment

The following folder should be added to the system path:

mcr_root\version\runtime\win32|win64

where mcr_root refers to the complete path where the MCR library archive files are installed on the machine where the application is to be run.

mcr_root is version specific; you must determine the path after you install the MCR.

UNIX Paths for Run-Time Deployment

Linux

 setenv LD_LIBRARY_PATH 
  mcr_root/version/runtime/glnx86: 
  mcr_root/version/bin/glnx86: 
  mcr_root/version/sys/os/glnx86: 
  mcr_root/version/sys/java/jre/glnx86/jre/lib/i386/native_threads: 
  mcr_root/version/sys/java/jre/glnx86/jre/lib/i386/server: 
  mcr_root/version/sys/java/jre/glnx86/jre/lib/i386: 
setenv XAPPLRESDIR mcr_root/version/X11/app-defaults 

Linux x86-64

setenv LD_LIBRARY_PATH 
   mcr_root/version/runtime/glnxa64: 
   mcr_root/version/bin/glnxa64: 
   mcr_root/version/sys/os/glnxa64: 
   mcr_root/version/sys/java/jre/glnxa64/jre/lib/amd64/native_threads: 
   mcr_root/version/sys/java/jre/glnxa64/jre/lib/amd64/server: 
   mcr_root/version/sys/java/jre/glnxa64/jre/lib/amd64: 
setenv XAPPLRESDIR mcr_root/version/X11/app-defaults 

Intel Mac (Maci64)

setenv DYLD_LIBRARY_PATH 
   mcr_root/version/runtime/maci64: 
   mcr_root/version/bin/maci64: 
   mcr_root/version/sys/os/maci64: 
   setenv XAPPLRESDIR mcr_root/version/X11/app-defaults 
  


Free MATLAB Compiler Interactive Kit

Learn how to build standalone executables and C/C++ shared libraries from MATLAB code.


Get free kit

Trials Available

Try the latest version of MATLAB Compiler.


Get trial software
 © 1984-2010- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS