Download address: https://github.com/jenv/jenv
Jenv is relatively simple to use:
1. Delete the JAVA_HOME you configured before
2. Configure the system environment variable -->Path-->point to your jenv folder:
3. Restart the computer to make the system environment variables take effect
4. jenv add <name> <java_Path>
If there are spaces, you need to enclose them in double quotes
5. Use or switch your java version
Here is a clear picture: