Run a java program inside Matlab with a input file.
显示 更早的评论
Hi, I'm tring to run a java program from a matlab code. I already added the .jar file in the system static variables and I achived to lounch the progam. However I need to use a input file wrote inside matlab as a .txt file (or .dat dosen't matter). I'm using the system function:
system('java -jar mhclasses.jar');
system('java -jar javafoil.jar' );
where i can put the input file?
3 个评论
Kojiro Saito
2021-12-2
It depends on the jar files. Do your jar files allow input argments for a file?
You can check the jar input argments using "--help", possibly.
system('java -jar mhclasses.jar --help')
luigi ventre
2021-12-2
luigi ventre
2021-12-2
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Performance and Memory 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!