Search:

Type: Posts; User: newbie

Search: Search took 0.12 seconds.

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

    If you just wanted an easier way for end users to run your app without typing into cmd (instead of needing 2 windows), just ship an executable batch file with your jar.
  2. Re: How to redirect System.out to command line window

    If that was directed at me, i think it was done using System.setOut(new PrintStream()) etc but using PipedOutputStream and an extra thread. The inputstream element was never added, as it simply comes...
  3. Re: How to redirect System.out to command line window

    I've got a weird but plausable approach for you! I found one of my earliest Swing applications from University a few years back which simulates a command prompt in Swing. Its appearance can be seen...
  4. Re: How to redirect System.out to command line window

    Fair doos.
  5. Re: How to redirect System.out to command line window

    While the Process is alive, the hooks to both streams do refer to opened process. In the past, I've used the input streams to read values returned by .exe files.

    --- Update ---

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

    Okay, how about .setOut(new PrintStream(getStream))?
  7. Re: How to redirect System.out to command line window

    As I'm running Linux at the moment, I can't test anything. That said, my assumption would be to try something like:


    public static void main(String args[]) {
    final String[] params = {"cmd.exe",...
Results 1 to 7 of 7