Change Java Version Windows !!install!! Info

But on pure Windows cmd? The setx method is your reliable friend.

Create a file switch-java.bat with this content: change java version windows

Run as Administrator, and boom—you’ve time-traveled. But on pure Windows cmd

In the same section, find the variable named Path and click Edit . change java version windows

Note: You must run this script as Administrator for the /M flag to work.