I followed the instructions here: https://confluence.atlassian.com/adminjiraserver073/installing-java-861253016.html but I get the following error when I run 'atlas-version':
ATLAS Version: 8.0.16
ATLAS Home: /Applications/Atlassian/atlassian-plugin-sdk-8.0.16
ATLAS Scripts: /Applications/Atlassian/atlassian-plugin-sdk-8.0.16/bin
ATLAS Maven Home: /Applications/Atlassian/atlassian-plugin-sdk-8.0.16/apache-maven-3.5.4
AMPS Version: 8.0.2
--------
Executing: /Applications/Atlassian/atlassian-plugin-sdk-8.0.16/apache-maven-3.5.4/bin/mvn --version -gs /Applications/Atlassian/atlassian-plugin-sdk-8.0.16/apache-maven-3.5.4/conf/settings.xml
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK not a JRE
I then followed Oracle's instructions for uninstalling the JRE and I get the same error.
This is how I'm setting my env in my shell config"
# env
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0.0_91.jdk
export JAVA_HOME
export PATH=$PATH:$JAVA_HOME/bin
Not sure what else to try at this point.
Any suggestions?
Thanks
After installing JDK (and not JRE), try adding this,
export JAVA_HOME=`/usr/libexec/java_home`
in your /Users/<your_name>/.bash_profile file (create it if it doesn't exists)
Once this is done, either close terminal and open it again, or you can use `source` command.
source ~/.bash_profile
Also after this test if JAVA_HOME is set,
echo $JAVA_HOME
This should print out location of your Java home folder.
Thank you, DPK. Using
export JAVA_HOME=`/usr/libexec/java_home`
worked.
I'm using Z shell so I edited my ~/.zshrc file, but of course it works the same way.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Jim Constant Although, I myself use FISH shell, but it is convention to answer shell related questions in BASH as this is default in almost all Linux distribution.
Z Shell is also wonderful, I have used it for long time (~2 Years).
Upcoming Macos (Catalina) version will default to Z Shell.
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.