Run a java program inside Matlab with a input file.
Afficher commentaires plus anciens
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 commentaires
Kojiro Saito
le 2 Déc 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
le 2 Déc 2021
luigi ventre
le 2 Déc 2021
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Performance and Memory dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!