Use the background:
Use a computer to develop a Java program or run a Java program, but no JDK or JRE is installed on a computer. It is not possible to pollute a system.
WORKAROUND: You can use the SET command in a Windows system to configure temporary environment variables. Note: The TEMP environment variable is only valid for the current window.
The following is an example of the PATH environment variable:
① Viewing environment variables: set path
② Modifying environment variables: Set path=xxxx
When setting an environment variable, you can use%path% to refer to the original environment variable if you want to add it to the original environment variable:
③ Empty: Set paht= (no practical use, no need to empty environment variables ....) )
Note: The red box is the command format supported by path, such as the support. EXE command, etc.
Window Configuration TEMP environment variable