OpenJDK 64-Bit Server VM is an unsupported JVM
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:
- Stop Stash.
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"
- Start Stash.
Or to run Stash with Oracle JDK:
- Stop Stash.
- Download a Supported JVM from the Oracle Web Site.
- Change the value of the
JAVA_HOME
variable to the Oracle JDK path. - Start Stash.