Set an environment variable
hi, I need to read a value for an external application (Delphi) created with a javascript, I thought using a environment variable - Java creates the variable, the other program reads it, just I dont know how :(
a small example would be great :)
thanks
Tonnys
PS Sorry my english .
Re: Set an environment variable
Use a ProcessBuilder to construct your other process; a ProcessBuilder has a modifiable environment map. Read the API documentation for this class.
kind regards,
Jos
Re: Set an environment variable
Tnks for the quick reply, but a small example would be great..... I've searched all over the net but didn´t find any working staff
thank you
Tonnys
Re: Set an environment variable
Then you must have failed to look at the ProcessBuilder API, where this is explained in great detail.
That should have been your first stop off point.