(This installs the system OpenJDK – usually fine for development.)

Add the path to your Java bin folder to the "Path" variable.