Hi Beef Burger
Welcome to Microsoft Community.
Based on your description, I understand that you experience interruptions by the wizard when installing Java, and I understand very well how you feel!
Personally, I have installed different versions of Java because I used to write my graduation thesis, but later on Java were basically integrated into compilation tools, such as IDEA.
If you need to use Java for programming, I suggest you to install the corresponding tool in the compilation software, and call it directly when you run the code, so that there is no conflict when you download more than one version of Java.
If you are using Java for e.g. playing games, using Java-based applications, etc., I will give you some advice and hopefully solve your problem successfully! However, as this is a first reply with little information and the problem needs to be troubleshooted in different ways, please understand and provide more information (pictures would be great!) in your reply. Thank you very much!
Option 1: We need to check that our system meets the JDK first Make sure your system meets the requirements of JDK 21.0.5 or 23.
Then right-click on the installer and select “Run as administrator”, this will help with permission issues.
Option 2: Sometimes it is possible that the problem occurs due to interference from firewalls or third-party anti-virus software.
So before installing, let's try to disable all types of firewalls and disable or uninstall third-party anti-virus programs.
- Disable all types of firewalls.
Click “WIN key” to open the search bar -> type “Windows Defender Firewall” and open it -> turn off all types of firewalls
- Disable all services related to third-party antivirus programs and make sure that no services are running automatically in the background.
Or uninstall the third party antivirus program temporarily.
If you choose to uninstall the third-party antivirus, please make sure it is a clean uninstall to avoid any file and registry residue that may cause conflicts or problems still exist.
Disclaimer: Temporarily turn off antivirus protection. However, keep in mind that if you do so, your device may be vulnerable to threats. So please turn it on immediately once issue fixed.
Option 3: If you have installed other versions of Java, it is possible that the problem is due to a version conflict.
It is usually possible to upgrade Java by upgrading, but to avoid file or registry residues that could cause a conflict. I personally recommend uninstalling it cleanly and then manually installing the version you need.
- If available, we first try to completely uninstall any Java that was ever installed on the computer.
- After uninstalling, we need to make sure to remove any remaining files and registries.
Files are usually stored in: C:\Program Files\Java and C:\Program Files (x86)\Java
The exact location will depend on your situation.
The registry can be cleaned by searching for relevant keywords or by using a third-party tool.
Please note that improper modification of the registry may cause serious problems, for further protection, please make a backup of the registry before modifying it. This way, if you make a mistake, you can restore the registry immediately.
- Try to install the required version of Java to see if the problem still exists.
Option 4: If you are using an online installer, we can try to download the offline installer from the Oracle website to see if the problem still exists.
Sometimes it is possible to have a similar problem with the online installer.
Option 5: We will try to install Java in safe mode.
Because safe mode only uses a limited set of files and drivers, it can help us to effectively troubleshoot the possibility of problems due to third-party applications, driver conflicts, and so on.
You can refer to Safe Mode: Windows startup settings - Microsoft Support
Option 6: I was under the impression that I remembered that the Java installer generates the relevant logs, and that we could try to check the logs for specific error messages.
If there is, this might be a breakthrough in solving the problem and give us more insight into what went wrong.
In addition, considering that Java is an Oracle product, if the problem still exists, we can try to send the installation logs or synchronize the problems encountered to Oracle forums or technical support staff. They are more familiar with their product and may have had other users report similar problems. Perhaps they have already written a fix or a more targeted solution.
I sincerely hope that the above information will help you! Please feel free to contact me (Photos related to the question would be great!).
I look forward to hearing back from you.
Best Regards
Arthur Sheng | Microsoft Community Support Specialist