How to access JAVA Classes/Methods in matlab

Below is my input file: Trade.jar: Contains multiple classes & each class has multiple methods
I want to use/invoke method 'login' from class 'session' in my matlab script.
Can anybody guide me how to do it in matlab script.
Thanks.

답변 (1개)

Steven Lord
Steven Lord 2015년 7월 29일

0 개 추천

Open the documentation for MATLAB. In that documentation, open the "Advanced Software Development" section. The "Calling External Functions" subsection includes an item on calling Java libraries. Read through the Examples and Concepts sections for that item.

댓글 수: 1

I have already gone through the documentation.
I have added all relevant paths of files.
With 'methodsview' command I can see all methods of a particular class, but when I try to use method using below syntax, I get following error:
Syntax: classname.methodname()
Error:The class Session has no property or method named 'notify'

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

질문:

2015년 7월 29일

댓글:

2015년 7월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by