[solved][matlab] Compiler Runtime in commandline fails to start or not found

By.

min read

My profile

Share this:

Problem: I have installed the Matlab Compiler Runtime but it fails to start.
My application would run in Eclipse but not commandline or Tomcat servlet.

Solution for Redhat/CentOS systems lies in the LD_LIBRARY_PATH

[b:dcf1e4c97e]How to set the LD_LIBRARY_PATH ?[/b:dcf1e4c97e]
I presume the Compiler runtime is installed in: /opt/MATLAB/MATLAB_Compiler_Runtime/v714

CREATE FILE java.sh in etc/profile.d/
FILE CONTENTS
[code:1:dcf1e4c97e]export LD_LIBRARY_PATH=/opt/MATLAB/MATLAB_Compiler_Runtime/v714
#export MCRROOT=/opt/MATLAB/MATLAB_Compiler_Runtime/v714

export LD_LIBRARY_PATH=/opt/MATLAB/MATLAB_Compiler_Runtime/v714/runtime/glnxa64:/opt/MATLAB/MATLAB_Compiler_Runtime/v714/bin/glnxa64:/opt/MATLAB/MATLAB_Compiler_Runtime/v714/sys/os/glnxa64:/opt/MATLAB/MATLAB_Compiler_Runtime/v714/sys/java/jre/glnxa64/jre/lib/amd64/native_threads:/opt/MATLAB/MATLAB_Compiler_Runtime/v714/sys/java/jre/glnxa64/jre/lib/amd64/server:/opt/MATLAB/MATLAB_Compiler_Runtime/v714/sys/java/jre/glnxa64/jre/lib/amd64:
export XAPPLRESDIR=/opt/MATLAB/MATLAB_Compiler_Runtime/v714/X11/app-defaults[/code:1:dcf1e4c97e]

Now reboot.

Test with commandline:
echo $LD_LIBRAY_PATH
it should print your lines on screen.

Share this:

Leave a Reply

Your email address will not be published. Required fields are marked *