how can I pass environment variables set in Java to another application, like CAD NX from Siemens. I know that AutoIT has the function, that if enviroment variables are set in the script and the application is launched from this script, the program uses the enviroment variables from the script as long as the script is running. The application automatically retrieves the variables and copies some files to another folder and so on...
How can I achieve this using Java? (I don't want to launch an external AutoIT script)