scoop is necessary
You can manage multiple versions of PHP on same machine with scoop, if you don't install it, check this guide: scoop

Add bucket

scoop update
scoop bucket add java

Install openjdk

scoop install openjdk

Check system varibales

In Windows environement variables, scoop add some variables.

JAVA_HOME => C:\Users\USERNAME\scoop\apps\openjdk\current
Path => [

Check Java

Restart your terminal and try execute Java.