cjdk env should print something like
CJDK_ORIGINAL_JAVA_HOME="$JAVA_HOME"
CJDK_ORIGINAL_PATH="$PATH"
JAVA_HOME=/path/to/jdk
PATH="$JAVA_HOME/bin:$PATH"
except that the output should be tailored to the current shell/cmd.exe/powershell. In bash, this can be used as
cjdk env --restore should restore the previous state.