How do I deploy a function which uses BLP (Bloomberg API v3) functions in MATLAB Compiler 4.13 (R2010a)?

조회 수: 2 (최근 30일)
I followed the instructions in solution 1-BPTJDX in order to be able to use the BLP functions in MATLAB; this worked. When I compile my function into a standalone application using MATLAB Compiler however, I still receive the following error when running the standalone:
??? Undefined function or variable 'SessionOptions'.

채택된 답변

MathWorks Support Team
MathWorks Support Team 2010년 6월 9일
By adding blpapi3.jar to the classpath.txt file, MATLAB is now able to find the JAR-file when needed. The settings from classpath.txt will not be taken into consideration when compiling your function using MATLAB Compiler however. So for the compiled function you need a different way of telling the MCR where to find the JAR-file. This can be accomplished by using the JAVAADDPATH function; for example add the following to the top of your function:
javaaddpath('C:\blp\API\APIv3\JavaAPI\v3.3.1.1\lib\blpapi3.jar')

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

제품


릴리스

R2010a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by