Why do I get an undefined variable "com" or class "com.mathworks.jmi.ClassLoaderManager.getClassLoaderManager" when running my deployed application?
이전 댓글 표시
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 and
custom java classes. The Java calls may not work in the deployed mode. If
you are using certain MathWorks toolbox that uses jar files, you can
extract the CTF archive by either running the application once or using the
extractCTF utility and then copy the toolbox jar file from
<component>_mcr/java/jar/toolbox directory to the <mcrroot>/java/jar/toolbox
directory. For your custom Java class and jar files, you can copy these to
any directory on your target machine and add this directory and/or the jar
files 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:
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!