Hi, Oli: It is really a problem that System.getenv fails to behave as RI on windows. I will fix it by get env string out by os function such as getenvironmentvariable and getenv. Thank you for your tips. Besides, the returned environment variables is only defined in the process of the java application, for example, the command windows, and remains the same during the life cycle. :)
Thank you, Oli. Good luck! -- Leo Li China Software Development Lab, IBM