OpenJDK 64-Bit Server VM is an unsupported JVM

Troubleshooting Installation

このページの内容

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

症状

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

原因

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.

ソリューション

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.
最終更新日: 2016 年 2 月 26 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.