• Home
  • About
    • IT-eyes photo

      IT-eyes

      IT-eyes is a website for sharing IT technology.

    • Learn More
    • Email
    • Twitter
    • Github
    • Codepen
  • Posts
    • All Posts
    • All Tags
  • Projects

Quikly Switch JDK Versionin Win10

07 Aug 2022

Reading time ~1 minute

This Guide walks you quikly to switch JDK version in Win10.

background

There are JDK8 and JDK11 locally, and now I want to quickly switch to the JDK version without configuring system environment variables and restarting the computer.

Solution

Execute the following command on the command line to temporarily use the corresponding jdk version on the console, but it will be invalid when the command line is closed.

The CMD command line must be used, and powerShell will not take effect.

For more details, please visit:IT-eyes



java Share Tweet +1