how to invoke java program from matlab
조회 수: 1 (최근 30일)
이전 댓글 표시
Hie.
I am working on a project where I need to invoke java code from MATLAB, either from command window or from a .m file.
I tried using command system('java myProg_class'), where 'myProg_class is class file of my program and it's saved in the default MATLAB directory. But I'm getting error that 'java' commannd isn't recognized.
Please someone help me with this ASAP....
thanks in advance.
--
Neha
댓글 수: 0
답변 (1개)
Kaustubha Govind
2011년 5월 6일
The syntax that you are using is used to invoke the Java interpreter from the system shell. You need to compile your code into a .jar or .class file to be able to use it from MATLAB. Please see Using Java Libraries from MATLAB for more information.
참고 항목
카테고리
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!