By default, tests run using jtreg are each run in a
separate JVM. By design, only a limited number of shell
environment variables are passed down to the test's JVM.
This may affect how a test is run.
As per spec, the only shell environment variables that are automatically propagated into the test's JVM are:
PATH is set to /bin:/usr/bin
DISPLAY,
HOME
LANG,
LC_ALL,
LC_TYPE,
LPDEST,
PRINTER,
TZ and
XMODIFIERS
PATH is set to the MKS or Cygwin toolkit binary directorySystemDrive,
SystemRoot
windir
If your test needs to provide more environment variables or
to override any values, use the -e option.