How to access JAVA Classes/Methods in matlab

3 vues (au cours des 30 derniers jours)
Sachin Ganjare
Sachin Ganjare le 29 Juil 2015
Commenté : Sachin Ganjare le 29 Juil 2015
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 commentaire
Steven Lord
Steven Lord le 29 Juil 2015
There's no file attached to the question.

Connectez-vous pour commenter.

Réponses (1)

Steven Lord
Steven Lord le 29 Juil 2015
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 commentaire
Sachin Ganjare
Sachin Ganjare le 29 Juil 2015
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'

Connectez-vous pour commenter.

Catégories

En savoir plus sur Call Java from MATLAB dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by