Hello zakir, I'm Johrelle a fellow Windows/Microsoft user. I'm happy to assist you.
It sounds like you're facing a challenge with managing Java versions on your systems.
There is a Java Version Switcher tool that I can suggest. Oracle Java Version Switcher, it offers a Java Version Switcher tool that allows you to manage multiple Java versions on your system and easily switch between them.