Primarily to fix rendering of these default values in the manual but it's also nice to avoid having to eval these things just to build the manual.
Mostly just provides a shell hook for the jdk's setup-hook. Tested with openjdk and jre.