Search:

Type: Posts; User: Cornix

Search: Search took 0.09 seconds.

  1. Re: How to redirect System.out to command line window

    I dont seem to be able to start it with console via run-as. In the drop-down menu I have "Java(TM) Platform SE Binary"; when I click that, nothing happens. The application does not start.
    Double...
  2. Re: How to redirect System.out to command line window

    Exactly that is the problem why I want that command prompt to open in the first place. Try to tell somebody who is not tech-savvy how to start a java application via command prompt if that java...
  3. Re: How to redirect System.out to command line window

    A custom implementation of the command line would of course always be another option. But I would have really appreciated if there was some simple way. Its funny that this is such a difficult problem...
  4. Re: How to redirect System.out to command line window

    But I would like to make my output to the input of the process.
    Like:

    System.setOut(process.getInputStream());
    With the intention that any further print commands would print to the command...
  5. Re: How to redirect System.out to command line window

    When I try that my IDE (Eclipse) gives me the following error:

    So I am pretty sure it wouldnt work that way.
  6. Re: How to redirect System.out to command line window

    Well, I dont know either. But if there is a way I would sure like to know.
  7. Re: How to redirect System.out to command line window

    Did that too, since the "setOut" method needs a printStream. You can not just set it to the output stream returned by process.getOutputStream().
  8. Re: How to redirect System.out to command line window

    Thanks for the quick response. I tried that already and it didnt work. I couldnt read any input and outputs where not displayed in the command prompt. But thanks anyways.
  9. How to redirect System.out to command line window

    Hi.
    In my application I open a command line window with the following code:


    try {
    Runtime.getRuntime().exec(new String[] {"cmd.exe", "/C", "\"start; cd c:\\\""});
    } catch (IOException e)...
Results 1 to 9 of 9