Runtime.exec problem for different OS.

P

Priyanka AGARWAL

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
 
G

Guest

Priyanka said:
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

Already answered in http://makeashorterlink.com/?Z2F552DA8

- Dario
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,608
Members
45,242
Latest member
KendrickKo

Latest Threads

Top