I have set up the LD_LIBRARY_PATH variable using the directories specified in the documentation, but in a different order.
I have an application that I can run from within MATLAB using the bang(!) operator. When I try running it from outside of MATLAB or on a deployed machine, I get the following error:
Opening log file: /export/home/vnmr1/java.log.7291 ??? Undefined variable "com" or class "com.mathworks.jmi.ClassLoaderManager.getClassLoaderManager". Error in ==> javaclasspath>local_javapath at 114 Error in ==> javaclasspath at 62 Error in ==> javaaddpath at 66 Could not initialize the dynamic Java classpath needed for toolboxes andcustom java classes. The Java calls may not work in the deployed mode. Ifyou are using certain MathWorks toolbox that uses jar files, you canextract the CTF archive by either running the application once or using theextractCTF utility and then copy the toolbox jar file from <component>_mcr/java/jar/toolbox directory to the <mcrroot>/java/jar/toolboxdirectory. For your custom Java class and jar files, you can copy these toany directory on your target machine and add this directory and/or the jarfiles with fully qualified path to the classpath.txt in your MCR installation. # # An unexpected error has been detected by HotSpot Virtual Machine: # # SIGSEGV (0xb) at pc=0xfd6aebc0, pid=7291, tid=2 # # Java VM: Java HotSpot(TM) Client VM (1.5.0-b64 mixed mode, sharing) # Problematic frame:
Best Answer