Share via

Java install error

Anonymous
2024-12-19T09:21:21+00:00

Hello,

I got a problem with java, everytime i try to install it it says ''wizard got interupted before java development kit 21.0.5 could install'' I also get this problem with java 23

hope yall can help

Windows for home | Windows 11 | Install and upgrade

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
Answer accepted by question author
  1. Anonymous
    2024-12-20T06:50:42+00:00

    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.

    1. 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

    1. 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.

    1. If available, we first try to completely uninstall any Java that was ever installed on the computer.
    2. 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.

    1. 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

    2 people found this answer helpful.
    0 comments No comments

8 additional answers

Sort by: Most helpful
  1. Anonymous
    2024-12-29T09:56:11+00:00

    Hi Beef Burger,

    I’m so glad to hear you had a great Christmas.

    Thank you for your reply and for your efforts in checking the logs. It's a bit puzzling that the expected log files aren't showing up, but I'd be happy to help you troubleshoot further.

    1. Sometimes the location of the log files can be a bit tricky, especially if the Java installation wizard uses a different method to run the setup. Let's try this.

    (1) When trying to install, open the Task Manager (Ctrl + Shift + Esc)

    (2) Under the “Processes” tab, locate the Java installation process (it may be named “jdk-installer.exe” or something similar).

    (3) Right-click on the process and select “Open File Location” to gain direct access to the directory where the installer is running.

    (4) From there, check to see if any log files have been created in that folder. You can also check the “%TEMP%” folder again, but this may give us a more accurate location.

    1. Assuming that there are still no log files, we can install Java in another way. another way is to run the Java installer from the command line so that we can capture any logs directly to a specific file.

    (1) Click “Windows Logo Key” to open the search bar -> Type “Windows PowerShell” in the search bar and open it with administrator privileges.

    The following is an example of installation (need to be modified according to the actual situation):

    (2) Use the “cd” command to navigate to the folder where the installer is located.

    cd C:\path\to\installer
    

    (3) Then, run the installer with the “/L” option, specifying the location of the logs.

    jdk-xx_windows-x64_bin.exe /L C:\path\to\logfile.log
    

    This will create a log file (“logfile.log”) in the specified directory, which we can check for errors.

    1. If no logs appear and the problem persists, at this point we can probably determine that the problem may be caused by a conflict with an older Java installation or a partially installed version of Java.

    (1) Uninstall any existing Java version via Control Panel > Programs > Uninstall a Program.

    (2) After uninstallation, check the “%TEMP%” folder and the “Program Files” directory (“C:\Program Files\Java” and “C:\Program Files (x86)\Java”) to make sure that there are no remaining Java files.

    (3) We can also use a tool such as JavaRa to completely remove any remnants of Java.

    1. If you are using the online installer, sometimes it may not work properly due to network problems. Try downloading the Offline Installer from the official Java download page.

    This is a more complete installation file that does not rely on the network during the installation process, which may help to avoid interruptions.

    I sincerely hope that the above information will help you!

    0 comments No comments
  2. Anonymous
    2024-12-28T17:02:39+00:00

    Hello Arthur,

    I had a very good Christmas and I hope you also had a great Christmas.

    First of all thanks for responding.

    Second, I looked into the temp files but could not find any folders or files that begin with "java_installer" or "hs_err_pid". I also tried deleting all then re-launching it but still nothing. I am very confused on this and hope you can help again.

    Greetings,
    Beef Burger

    0 comments No comments
  3. Anonymous
    2024-12-24T12:09:18+00:00

    Merry Christmas! 🎄 Wishing you a joyful holiday season and a new year filled with peace, happiness, and success! ✨


    Thank you for your response.

    No problem at all! I completely understand, it’s easy to forget messages. Thanks for your patience in working through the options.

    Java usually generates log files during the installation process. These logs can provide us with more detailed information about what went wrong. Here's where you can look for them:

    1. By default, Java installation logs are located in the "%TEMP%" folder.

    Press "Win + R" to open the "Run" dialog box, then type "%TEMP%" and press Enter to access the folder.

    In the folder that opens, look for files that begin with "java_installer" or "hs_err_pid".

    1. If you are using a command-line installation of Java (for example, using an .exe file), you can specify the log file path by adding the /L parameter to the command line.

    Example:

    jdk-xx_windows-x64_bin.exe /L C:\path\to\your\logfile.log
    

    This writes all output from the installation process to the specified log file.

    1. The log files will contain specific error codes or messages that will help to identify the problem. If you find any entries with “error” or “failed”, you need to investigate.

    Once the logs are available, we will be able to gain more insight into what may have caused the interruption of the installation.

    Have a wonderful holiday season!

    0 comments No comments
  4. Anonymous
    2024-12-23T16:41:55+00:00

    Hello Arthur,

    I read all of the steps you said I should do and I’m now by Option 6. The rest of the options didn’t work and nothing changed. Can you say where the logs are stored? That would be helpful. (Btw I forgot the this message I send till today, sorry about that)

    Best regards,

    Beef Burger

    0 comments No comments