Yeah. Java went through a silly phase where they deprecated access to environment variables -- and actually changed it to return an error. The reasoning being that not all OSes supported environment variables. This was, of course, undone later.
The easiest solution is to do what the message says. Change your shellscript to use the -D option to assign the environment value to a system property, and in the program, use the system property instead.
Henry Wong wrote:
Change your shellscript to use the -D option to assign the environment value to a system property, and in the program, use the system property instead.
Henry
Henry,
Could you give an example of how to do this?