OpenJDK 64-Bit Server VM is an unsupported JVM

Troubleshooting Installation

On this page

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

The Stash UI shows the following error when trying to access http://STASH_HOST:STASH_PORT:

The following problem occurred which prevents Atlassian Stash from starting correctly

OpenJDK 64-Bit Server VM is an unsupported JVM

In the atlassian-stash.log the following can be seen: 

2012-11-09 08:27:36,813 ERROR [main]  c.a.s.i.j.JdkApplicationEventCheck OpenJDK 64-Bit Server VM is an unsupported JVM. <a href="http://confluence.atlassian.com/x/pQqTE">Supported platforms</a>.
2012-11-09 08:27:36,822 ERROR [main]  c.a.j.s.w.c.JohnsonContextLoaderListener Bypassing Spring ApplicationContext initialisation; a previous fatal error was found: OpenJDK 64-Bit Server VM is an unsupported JVM. <a href="http://confluence.atlassian.com/x/pQqTE">Supported platforms</a>.
2012-11-09 08:27:37,077 ERROR [main]  c.a.j.s.w.s.JohnsonDispatcherServlet Bypassing SpringMVC dispatcher [spring-mvc] initialisation; Spring initialisation was bypassed

Cause

Previously Stash did not support OpenJDK as mentioned in the Supported platforms document. As of Stash 2.5 OpenJDK is officially supported. If you have any previous version, there is a check in place that prevents Stash from running with it.

Resolution

In order to run Stash with OpenJDK:

  1. Stop Stash.
  2. Edit the following line in <Stash Installation Directory>/bin/setenv.sh for Linux/Unix or <Stash Installation Directory>/bin/setenv.bat for Windows:

    JVM_SUPPORT_RECOMMENDED_ARGS="-Dstash.allow.openjdk=true"
  3. Start Stash.

Or to run Stash with Oracle JDK:

  1. Stop Stash.
  2. Download a Supported JVM from the Oracle Web Site.
  3. Change the value of the JAVA_HOME variable to the Oracle JDK path.
  4. Start Stash.
Last modified on Feb 26, 2016

Was this helpful?

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