Run a java program inside Matlab with a input file.
Show older comments
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 Comments
Kojiro Saito
on 2 Dec 2021
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
on 2 Dec 2021
luigi ventre
on 2 Dec 2021
Accepted Answer
More Answers (0)
Categories
Find more on Performance and Memory in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!