Runtime.exec problem for different OS.

From: Priyanka AGARWAL (priya_smit_at_yahoo.com)
Date: 06/29/04


Date: 29 Jun 2004 05:45:10 -0700

I have a small problem.My program uses an external application which
has some environment settings.

Runtime.exec() works fine on windows when I give the env as null
I am using it as:

Runtime.getRuntime.exec(exeCmd , null , new File(workingDirecory));

But it doesnt work in unix. It doesnt take the default environment
settings in UNIX operating system.

Does anyone know the solution?
Thanks
Priyanka



Relevant Pages

  • Re: Runtime.exec problem for different OS.
    ... > has some environment settings. ... > Runtime.execworks fine on windows when I give the env as null ... > But it doesnt work in unix. ... > settings in UNIX operating system. ...
    (comp.lang.java.programmer)
  • Re: clisp screws my enviromnent
    ... Daniel Albuschat wrote: ... | It seems that my environment settings are overridden or discarded. ... Compare that to running "env" in a shell. ...
    (comp.lang.lisp)