cs_neodante
Messages postés2835Date d'inscriptionlundi 11 août 2003StatutModérateurDernière intervention16 décembre 200611 23 janv. 2004 à 10:12
:big) Neodante :big)
Voici un bout de la javadoc dans lequel tu trouveras certainement un moyen de savoir où se trouve ton erreur :
The Runtime.exec methods create a native process and return an instance of a subclass of Process that can be used to control the process and obtain information about it. The class Process provides methods for performing input from the process, performing output to the process, waiting for the process to complete, checking the exit status of the process, and destroying (killing) the process.
The Runtime.exec methods may not work well for special processes on certain native platforms, such as native windowing processes, daemon processes, Win16/DOS processes on Microsoft Windows, or shell scripts. The created subprocess does not have its own terminal or console. All its standard io (i.e. stdin, stdout, stderr) operations will be redirected to the parent process through three streams (Process.getOutputStream(), Process.getInputStream(), Process.getErrorStream()). The parent process uses these streams to feed input to and get output from the subprocess. Because some native platforms only provide limited buffer size for standard input and output streams, failure to promptly write the input stream or read the output stream of the subprocess may cause the subprocess to block, and even deadlock.
The subprocess is not killed when there are no more references to the Process object, but rather the subprocess continues executing asynchronously.
Voilà à mon avis regarde la méthode getErrorStream et regarde à quoi correspond la valeur 2 de retour par exemple en regardant dans les sources de la Process !
@+ ;)
CrazyDog_974
Messages postés19Date d'inscriptionjeudi 22 janvier 2004StatutMembreDernière intervention28 avril 2005 23 janv. 2004 à 13:02
salut neodante, voila j'ai fait ce que tu m'as dit, je ne suis trop bon en anglais, mais je n'ai pas trouver http://java.sun.com/j2se/1.4.2/docs/api/index.html de numero d'erreur et ca correspondance !!
Le CrazyDog vous salut bien bas! :shy)