Search:

Type: Posts; User: RESHAM

Search: Search took 0.24 seconds.

  1. Thread: Java Compiler

    by RESHAM
    Replies
    7
    Views
    1,128

    [SOLVED] Re: Java Compiler

    value = inStream.read();
    error = errorStream.read();

    read() reads next byte of data from input stream
    so in the 1st iteration its (char)value=h and (char)error=j. you are reading one character...
  2. Thread: Java Compiler

    by RESHAM
    Replies
    7
    Views
    1,128

    [SOLVED] Re: Java Compiler

    while ((value = inStream.read()) != -1 || (error = errorStream.read()) != -1) {
    if (value > 0) {
    System.out.print((char) value);
    }
    ...
  3. Thread: Java Compiler

    by RESHAM
    Replies
    7
    Views
    1,128

    [SOLVED] Re: Java Compiler

    OutStreamAccumulator out = compiler.new OutStreamAccumulator(process.getInputStream());

    getInputStream returns the only input stream connected to the normal output of the subprocess.
    try using...
Results 1 to 3 of 3