Run a java program inside Matlab with a input file.
Mostrar comentarios más antiguos
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 comentarios
Kojiro Saito
el 2 de Dic. de 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
el 2 de Dic. de 2021
luigi ventre
el 2 de Dic. de 2021
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Performance and Memory en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!