JIRA Service Fails To Start in Windows - Is Not a Valid Win32 Application

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

JIRA Service fails to start in Windows with the following error in the Windows event log:

Event ID 7000 and "%1 Is Not a Valid Win32 Application"

The following appears in commons-daemon.log for Apache Tomcat:

[2012-11-24 13:37:25] [info]  Running 'jira' Service...
[2012-11-24 13:37:25] [info]  Starting service...
[2012-11-24 13:37:25] [error] %1 is not a valid Win32 application.
[2012-11-24 13:37:25] [error] Failed creating java C:\Progra~2\Java\jdk1.6.0_24\jre\bin\server\jvm.dll
[2012-11-24 13:37:25] [error] %1 is not a valid Win32 application.
[2012-11-24 13:37:25] [error] ServiceStart returned 1
[2012-11-24 13:37:25] [error] %1 is not a valid Win32 application.
[2012-11-24 13:37:25] [info]  Run service finished.
[2012-11-24 13:37:25] [info]  Commons Daemon procrun finished

Cause

There are a number of known causes for this problem:

  1. Windows has issues with services that have spaces in the file path as described in this Microsoft article. The root cause of this issue can be due to the the JIRA service using the JRE/JDK that is installed in the system rather than the bundled JRE that came along with the Standalone Installer for Windows. And the installed JRE usually has a space in the path as it is usually at the location "C:\Program Files (x86)\Java" or "C:\Progam Files\Java".
  2. JIRA has been installed in a 64-bit Windows version using the 64-bit installer, however is using 32-bit Java.
  3. JIRA has been installed in a 64-bit Windows version using the 32-bit installer, however is using 64-bit Java.
  4. Due to a known bug  JRA-30699 - Getting issue details... STATUS  the installer has not defaulted to the bundled JRE.

When installing JIRA onto a 64-bit Windows, we recommend to use the 64-bit installer and bundled JRE as using 32-bit on 64-bit architecture is known to cause problems as in our JIRA crashes when running as a Windows Service KB article.

Workaround

Try to start JIRA using the start-jira.bat file in JIRA's bin directory to restore access until the Windows Service is fixed. If this doesn't work, it could be due to the %JAVA_HOME% variable pointing to the incorrect JVM as well.

Resolution

  1. Verify that JIRA is using the correct JVM by editing the service, as in our Setting Properties and Options on Startup documentation. If the bundled installer was used, the JVM should be the following:

    C:\Program Files\Atlassian\JIRA\jre\bin\server\jvm.dll

    (info) This may be in Program Files (x86) if using Windows 64-bit and JIRA 32-bit. If this is how your JIRA is configured, we recommend migrating to 64-bit JIRA on 64-bit Windows.

  2. Start JIRA using the Service.
  3. If this does not resolve the problem, delete the %JAVA_HOME% environment variable, as set in our Installing Java docs.
  4. Reinstall the service with the following, executing on the command line in <JIRA_INSTALL>/bin:

    service.bat remove
    service.bat install
  5. After reinstalling the service, attempt to start it.

Last modified on Mar 30, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.