These errors generally indicate that the LD_PRELOAD environment variable has not been set correctly.
If the machine running the application has MATLAB installed, LD_PRELOAD can be set correctly using the following command at your system command shell:
setenv LD_PRELOAD <matlabroot>/sys/java/jre/hpux/jre1.4.1/lib/PA_RISC2.0/server/libjvm.sl
where _matlabroot _refers to the MATLAB installation directory, which can be determined by entering
at the MATLAB Command Prompt.
For more information on environment configuration for stand-alone applications running on machines that have MATLAB installed, enter the following at the MATLAB Command Prompt:
web([docroot,'/toolbox/compiler/ch04standalone5.html#995872'])'
If the machine in question does not have MATLAB installed but rather has the MATLAB Component Runtime (MCR) libraries installed, the following command will correctly set the LD_PRELOAD environment variable:
setenv LD_PRELOAD
<mcr_root>/<ver>/sys/java/jre/hpux/jre1.4.1/lib/PA_RISC2.0/server/libjvm.sl
where _mcr_root _refers to the MCR installation directory, and <ver> refers to the MCR version.
For more information on environment configuration for stand-alone applications running on machines that have the MCR libraries installed, enter the following at the MATLAB Command Prompt:
web([docroot,'/toolbox/compiler/ch04standalone7.html#995938'])
Best Answer