Invalid Java location
プラットフォームについて: Data Center のみ。 - This article only applies to Atlassian apps on the Data Center プラットフォーム。
この KB は Data Center バージョンの製品用に作成されています。Data Center 固有ではない機能の Data Center KB は、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。 Server* 製品のサポートは 2024 年 2 月 15 日に終了しました。Server 製品を実行している場合は、 アトラシアン Server サポート終了 のお知らせにアクセスして、移行オプションを確認してください。
*Fisheye および Crucible は除く
症状
Starting Bitbucket Server will get the following error:
# bin/start-bitbucket.sh -fg
Starting Atlassian Bitbucket Server as current user
Detecting JVM PermGen support...
PermGen switch is supported. Setting to 256m\n
Using BITBUCKET_HOME: /home/bitbucket
Using CATALINA_BASE: /opt/atlassian/atlassian-bitbucket-1.3.1
Using CATALINA_HOME: /opt/atlassian/atlassian-bitbucket-1.3.1
Using CATALINA_TMPDIR: /opt/atlassian/atlassian-bitbucket-1.3.1/temp
Using JRE_HOME: /usr/bin/java
Using CLASSPATH: /opt/atlassian/atlassian-bitbucket-1.3.1/bin/bootstrap.jar
Using CATALINA_PID: /opt/atlassian/atlassian-bitbucket-1.3.1/work/catalina.pid
bin/catalina.sh: line 306: /usr/bin/java/bin/java: Not a directory
bin/catalina.sh: line 306: exec: /usr/bin/java/bin/java: cannot execute: Not a directory原因
JAVA_HOME is incorrectly set.
ソリューション
Set the correct JAVA_HOME as stated in this documentation, under section Is your JAVA_HOME variable set correctly?.
更新日時: September 25, 2025
この内容はお役に立ちましたか?
さらにヘルプが必要ですか?
アトラシアン コミュニティをご利用ください。