Rien ne se passe avec exec.
Bonjour,
tout est dit dans le titre... rien ne se passe pas meme pas un message d'erreur lorsque j'utilise la commande exec...
voici mon code
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
try{
String ch = jTextField7.getText();
String s;
String fin = "\\MARCHE\\IntGraph\\src\\intgraph\\MATLAB Compiler Runtime\\v710\\bin\\win32\\Encoursfin.exe";
String ch1=ch.substring(0,ch.lastIndexOf("\\"));
String hellolol=ch1+fin;
System.out.println(hellolol);
Runtime Run = null;
Run = Runtime.getRuntime();
Process Proc= Run.exec(hellolol);
BufferedReader r1 = new BufferedReader(new InputStreamReader(Proc.getInputStream()));
while(( s =r1.readLine()) != null){
System.out.println(s);
}
}
catch (Exception e){
System.out.println(e.toString());
} |
Si quelqu'un voit une erreur car la je ne comprends pas...
Merci d'avance