Does Java have a putenv method? Does it exist in a standard library? (I get nothing for this, searching the Sun pages).
I see other references to putenv, in various places on the web, but nothing I can get to work.
If putenv exists, Which library? (Or is it only in a specific os library, maybe for an os I am not using?)
How is it used? (maybe an example).
Any recommendations on setting an environment variable.
(as for why, I later call another program, from within the java program, that is already coded to check the environment variable. I can not change this other program.)
I did manage to do a system call to "/usr/bin/ksh . /home/account/.profile" to not error (I had to include the /user/bin/ksh to get it to not tell me it did not understand the .)
However, this still failed to get the values passed up, so that later when I did a System.getenv it would have the correct values.
However, if I . the same .profile script, before running my java code, the System.getenv does retrieve the correct values, therefore my getenv command is executing correctly.
If I can verify that putenv does not exist (or does not exist for the OS I am using) then I can at least stop mucking with trying to get it to work, and move on to another possible solution.