So Ihave managed to install the openjdk 8 and using jenv I have set it to 
global.

But jenv doesn’t seem to be setting JAVA_HOME


feargalnewmbp4:~ feargal$ more ~/.bash_profile

# Setting PATH for Python 3.6
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.6/bin:${PATH}"
export PATH
export VISUAL=nano
export EDITOR="$VISUAL"

# Setting PATH for Python 3.7
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.7/bin:${PATH}"
export PATH

export PATH="$HOME/.jenv/bin:$PATH"
eval "$(jenv init -)"

feargalnewmbp4:~ feargal$ java -version
openjdk version "1.8.0_222"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_222-b10)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.222-b10, mixed mode)
feargalnewmbp4:~ feargal$ jenv doctor
[OK]    No JAVA_HOME set
[OK]    Java binaries in path are jenv shims
[OK]    Jenv is correctly loaded
feargalnewmbp4:~ feargal$ nifi start
nifi: JAVA_HOME not set; results may vary

Java home: 
NiFi home: /usr/local/Cellar/nifi/1.9.2/libexec

Bootstrap Config File: /usr/local/Cellar/nifi/1.9.2/libexec/conf/bootstrap.conf




Any ideas?

Reply via email to