Use a version manager like nvm-windows . You can run nvm install lts to automatically download the latest stable zip/installer.

If you can tell me the or the programming language you're using, I can give you the exact links and commands.

Initialize your project with npm init and create a new branch in your repository to isolate the new feature. Java (OpenJDK)

Microsoft and Oracle provide LTS zip packages for OpenJDK. You extract these to a folder and set your JAVA_HOME environment variable to that path.