On Thursday 31 July 2008 05:44, Craig Walls wrote:
> public class BrowserStarter {
>   public static final void main(String[] args) throws Exception {
>     Runtime.getRuntime().exec(args[0]);
>   }
> }

I am also not on Windows (who uses that anyway? ;-) )

Perhaps change to;

public class BrowserStarter {
  public static final void main(String[] args) throws Exception {
    Process p = Runtime.getRuntime().exec(args[0]);
    p.waitFor();
  }
}

And if that doesn't do it, look up the Pipe class in Pax Runner and add that 
by;

static Pipe err;
static Pipe out;
static Pipe in;

err = new Pipe( process.getErrorStream(), System.err ).start( "error" );
out = new Pipe( process.getInputStream(), System.out ).start( "out" );
in = new Pipe( process.getOutputStream(), System.in ).start( "in" );

and the Shutdown hook to cleanup properly.


Cheers
-- 
Niclas Hedhman, Software Developer

I  live here; http://tinyurl.com/2qq9er
I  work here; http://tinyurl.com/2ymelc
I relax here; http://tinyurl.com/2cgsug

_______________________________________________
general mailing list
general@lists.ops4j.org
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to