Run java class from inside matlab (previous question reference)

8 vues (au cours des 30 derniers jours)
Ioannis Nemparis
Ioannis Nemparis le 4 Juin 2019
Commenté : Guillaume le 4 Juin 2019
However, I was not able to reproduce the answer, I think I am missing something.
Step 1: The link is out of date, so I created the jar by myself. Then I used javaaddpath as shown.
Step2: I have the TriComps java class in a separate .cpp file when I run the triconnected_components function I get an error at line 30 : trc = TriComps; undefined function or variable.
Who can I actually declare that this is a java class?
  1 commentaire
Guillaume
Guillaume le 4 Juin 2019
"I have the TriComps java class in a separate .cpp file
.cpp files are typically C++ source files, not compiled java files (typically .jar files). They're two completely different beasts.

Connectez-vous pour commenter.

Réponses (0)

Catégories

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

Community Treasure Hunt

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

Start Hunting!

Translated by