Auf Thema antworten

Der Prozess gibt mir keine Error anzeige...


ich habe folgende Code hinzugefügt:

[code=Java]

        // read the output

       

        BufferedReader stdInput = new BufferedReader(new

        InputStreamReader(pr.getInputStream()));

        BufferedReader stdError = new BufferedReader(new

        InputStreamReader(pr.getErrorStream()));

        System.out.println("Here is the standard output of the command:\n");

        String s = null;

        while ((s = stdInput.readLine()) != null) {

        System.out.println(s);

        }

       

        // read any errors from the attempted command

        

        System.out.println("Here is the standard error of the command (if any):\n");

        while ((s = stdError.readLine()) != null) {

        System.out.println(s);

        }


[/code]


dann bekomme ich dass Ergebnis wie von oben beschrieben.



Oben