4.1. My test only passes if I don't use jtreg to run it. Why does it fail in jtreg?

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:

A test which relies on any other environment variables will experience difficulties running in jtreg.