by @kodeazy

How to switch between multiple java versions windows simultaneously?

Home » java » 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 and JDK 16.0.1.
  • To switch to JDK 18.0.1.1 follow blow steps.
  • Now Take the bin folder path of the JDK 18.0.1.1 and edit the path variable of Environment Variables and add the JDK 18.0.1.1 bin folder path as shown in below image.
  • My JDK 18.0.1.1 path is Java Env path setting image

    C:\Program Files\softwares\jdk-18.0.1.1\bin
  • Now check the java version Java 18 version image
  • To switch to JDK 16.0.1 follow blow steps.
  • Now take the bin folder path of the JDK16.0.1 and edit the path variable of Environment Variables and add the JDK 16.0.1 bin folder path as shown in below image.
  • My JDK 16.0.1 path is Java Env path setting image
C:\Program Files\softwares\Java\jdk-16.0.1\bin
  • Now check the java version Java 16 version image