Bonjour,
Je voudrais exécuter un script perl dans mon appli java. Pour l'instant je fais des tests avec Runtime::exec().
Voici mon test
Et même ça ça ne marche pas, j'ai ce message :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11 try { Runtime rt = Runtime.getRuntime(); Process proc = rt.exec("cmd.exe"); int exitVal = proc.exitValue(); System.out.println("Process exitValue: " + exitVal); } catch (Throwable t) { t.printStackTrace(); }
Merci pour votre aide!java.io.IOException: Cannot run program "cmd.exe": java.io.IOException: error=2, Aucun fichier ou répertoire de ce type
Partager