P
Priyanka AGARWAL
Hi,
I have a problem with Runtime.exec() call.
I have used the following code:
String[] env = null;
Process wait = Runtime.getRuntime.exec(exeCmd , env ,workingDir);
.................
.................
My exe command uses some external application which has environment
settings.
If I give the env as null it takes the default environment settings
in windows and works fine in windows .But it doesnt work in UNIX,
it doesnt take the default environment settings in unix.
I have tried using String[] env = {""} , still it doesnt work in unix.
I want my code to work both on windows and unix.
Is there a solution???
Priyanka
I have a problem with Runtime.exec() call.
I have used the following code:
String[] env = null;
Process wait = Runtime.getRuntime.exec(exeCmd , env ,workingDir);
.................
.................
My exe command uses some external application which has environment
settings.
If I give the env as null it takes the default environment settings
in windows and works fine in windows .But it doesnt work in UNIX,
it doesnt take the default environment settings in unix.
I have tried using String[] env = {""} , still it doesnt work in unix.
I want my code to work both on windows and unix.
Is there a solution???
Priyanka