Core Java

How to Fix Java Error Code 1618

Most of us would have faced the Java Error Code 1618 while installing or updating Java. The issue is commonly noticed during the installation of Java versions 7 and 8. The error indicates that another installation is in progress. It may be a java version or any other installation that uses Windows installer. In this article, we shall see some possible causes and solutions.

1. Cause for Java error code 1618

The error 1618 is not specific to Java. Some of the common causes for this error are mentioned below:

  1. Windows installer (msiexec.exe) is busy installing another program or process on the machine.
  2. Issues with Windows Installer service
  3. Issues with existing Java setup

2. Solutions for Java error code 1618

2.1 Allow existing installation to complete

Microsoft docs indicate the error 1618 as ERROR_INSTALL_ALREADY_RUNNING ( Another installation is already in progress. Complete that installation before proceeding with this install.). It is recommended to wait till the current installation completes. Check if there is already an instance of Windows installer running. You can identify this process in Task Manager. Allow the current installation/ process to finish and then try the installation

Java Error Code 1618 - Windows installer in task manager
Fig1. Windows installer in task manager

2.2 Restart windows installer

You can kill the existing installation or Windows Installer process in Task Manager (refer Fig1 above) and then start the service.

  1. Navigate to Services by typing services.msc in run command (Windows + R)
  2. Identify the Windows Installer service in this window and click on ‘Start’.
Java Error Code 1618 - Windows installer service
Fig2. Windows installer service

2.3 Reinstall Java

You can uninstall the previous versions of java and then try the setup. Note that from Java 8 Update 20, the Java Uninstall Tool is integrated with the installer to provide an option to remove older versions of Java from the system. The change is applicable to 32 bit and 64-bit platforms. Refer to the Java page for details.

You can try the offline installer available on the Java downloads page.

Java Error Code 1618 - Java download page for offline install
Fig3. Java download page for offline install

2.4 Uninstall security patch

You may try uninstalling the security patch – kb2918614 if you are still running on Windows 7 or 8.1. There are some known issues of this patch breaking the windows installer (refer to these links for support duration and issue details)

3. Building Your Own Java Package

Additionally, there is the chance that you are building your own Java Package. In these cases, in order to be sure that the error 1618 won’t interrupt the installation, you can create a Command Step and enter the following command:

helloWorld.jsp

taskkill.exe /f /im msiexec.exe

This command kills the Windows Installer which can prevent your Java Package from installing. Just be careful because this command can terminate any installation that is currently running. Also, in case taskkill.exe didn’t find any image of Windows Installer running, it will return an error code 128. You have to be sure that you will include codes 128 and 0 as Successful Error Codes.

4. Summary

We looked at some of the common causes and solutions for error 1618. I hope this article helps you get around the issue.

If you want to find more Java articles, take a look here.

Last updated on Oct. 13th, 2021

Venkat-Raman Nagarajan

Venkat works for a major IT firm in India and has more than a decade of experience working and managing Java projects for a banking client.
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Back to top button