Invalid Java location
Symptoms
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
Cause
JAVA_HOME
is incorrectly set.
Resolution
Set the correct JAVA_HOME
as stated in this documentation, under section Is your JAVA_HOME variable set correctly?.
Last modified on Oct 27, 2021
Powered by Confluence and Scroll Viewport.