Hello,
I am having bitbucket and jira insatlled on my ec2-instance on aws. I was trying to have ssl certificate to my jira installation where I followed the guide and during the process I defined environment variable to:
JAVA_HOME="/usr/lib/jvm/java-11-openjdk-amd64/bin/"
But when I restarted the bitbucket server it throw me error:
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
Edit set-jre-home.sh and define JRE_HOME
Startup has been aborted
I saw the file set-jre-home.sh where logically it should check /usr/lib/jvm/java-11-openjdk-amd64/bin/ directory and jre folder inside it, which it was unable to fetch. I'm now stuck with this. How can I fix it?
You do not need to include '/bin' in JAVA_HOME path. It should be
JAVA_HOME="/usr/lib/jvm/java-11-openjdk-amd64/"
Also after setting environment variable, have you logged in again/ or have you sourced file in which you have set environment variable.
To check if JAVA_HOME is set,
$ echo $JAVA_HOME
Check output of this command, if it is empty, and have you set environment variable in '~/.bashrc' or '~/.bash_profile' source that file or re-login to server.
$ source ~/.bashrc
OR
$ source ~/.bash_profile
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.