Watch this video on YouTube
Step by step guide to install Java and set JAVA_HOME on Windows 11 for developers and tools that need a correct environment variable.