As shown in the figure, when installing JDK under the windows system, when the prompt "the script on the current page has an error", you can use the installation-free version to install. For the installation method, please refer to the following articles and videos.
JDK installation steps article
Download and install JDK under Windows