title: MCR (MATLAB compiler runtime) with Image processing toolbox
body: <p>I'm trying to deploy an application from MATLAB to JAVA. 
  I create my jar file from MATLAB R2011a with the deploytool on Windows 7.</p>
  
  <p>I also installed MCR r2011a on Ubuntu, and set environment variable as follow.</p>
  
  <pre><code>## MATLAB compiler Runtime (MCR) 
  export LD_LIBRARY_PATH=/usr/local/MATLAB/MATLAB_Compiler_Runtime/v81/runtime/glnxa64:/usr/local/MATLAB/MATLAB_Compiler_Runtime/v81/bin/glnxa64:/usr/local/MATLAB/MATLAB_Compiler_Runtime/v81/sys/os/glnxa64:/usr/local/MATLAB/MATLAB_Compiler_Runtime/v81/sys/java/jre/glnxa64/jre/lib/amd64/native_threads:/usr/local/MATLAB/MATLAB_Compiler_Runtime/v81/sys/java/jre/glnxa64/jre/lib/amd64/server:/usr/local/MATLAB/MATLAB_Compiler_Runtime/v81/sys/java/jre/glnxa64/jre/lib/amd64:$LD_LIBRARY_PATH 
  export XAPPLRESDIR=/usr/local/MATLAB/MATLAB_Compiler_Runtime/v81/X11/app-defaults
  </code></pre>
  
  <p>When I run my jar file on the Ubuntu, I got these error:</p>
  
  <pre><code>com.mathworks.toolbox.javabuilder.MWException:
  Undefined function or method 'imresizemex' for input arguments of type 'uint8'.
  
  Error in ==&gt; TextDetect at 78
  Error in ==&gt; imresize at 169
  Error in ==&gt; imresize&gt;resizeAlongDim at 792
  </code></pre>
  
  <p>I got the same problem when I call the function in image processing toolbox, such as <code>imresize</code>, <code>dilate</code>, etc.</p>
  
  <p>If anyone has a solution about this problem, please give me a hint.</p>