by @kodeazy
How to switch between multiple java versions windows simultaneously?
- To change java versions simultaneously follow blow steps.
- Download the JDK folders of the
java versions
required. - In my scenario I have
JDK 18.0.1.1
andJDK 16.0.1
. - To switch to
JDK 18.0.1.1
follow blow steps. - Now Take the
bin
folder path of theJDK 18.0.1.1
and edit thepath
variable ofEnvironment Variables
and add theJDK 18.0.1.1
bin
folder path as shown in below image. -
C:\Program Files\softwares\jdk-18.0.1.1\bin
- Now check the java version
- To switch to
JDK 16.0.1
follow blow steps. - Now take the
bin
folder path of theJDK16.0.1
and edit thepath
variable ofEnvironment Variables
and add theJDK 16.0.1
bin
folder path as shown in below image. - My
JDK 16.0.1
path is
C:\Program Files\softwares\Java\jdk-16.0.1\bin