Run java class from inside matlab (previous question reference)
조회 수: 3 (최근 30일)
이전 댓글 표시
I stumbled upon the same issue as the one discussed here https://ch.mathworks.com/matlabcentral/answers/30377-is-there-an-implementation-of-tarjan-s-algorithm-for-triconnected-components-of-a-graph-in-matlab .
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
Guillaume
2019년 6월 4일
"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.
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Call Java from MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!