Question

Je dois lancer un appel système pour exécuter un fichier .app de java. Toutes les idées?

Était-ce utile?

La solution

String cmd = "./file.app";
Runtime run = Runtime.getRuntime();
Process pr = run.exec(cmd);
pr.waitFor();

Quelque chose comme ça?

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top