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 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
A test which relies on any other environment variables will experience difficulties running in jtreg.