Generally, a new laptop is pre-installed with a 64-bit Windows system. When downloading software online, 32-bit will first appear on the page (this is the case now, but I think the 64-bit will become more and more popular in the future ).
If you have a 64-bit system installed with a 32-bit JDK, the above situation will occur.
The solution is as follows:
Uninstall the originally installed 32-bit JDK and install the 64-bit JDK on your computer.
Modify the path and classpath environment variables again. In 64-bit systems, the 32-bit software is installed in the program files (* 86) folder, and the 64-bit software is installed in the Program Files Folder. When you install 32jdk, the environment variable path you set will certainly include "program files (* 86)", and the JDK has been transferred to "Program Files" and can be modified.
Note that the JDK version number you installed twice is not necessarily the same, because the JDK folder will be created based on your version number during installation. if the version number is different twice, you must modify it in the environment variable.
Now, eclipse can be used normally. Go and practice the Java program!