I got a mac (m3 pro) for work. I have installed the jdk 17(temurin) and 8 (amazon) for a project specific requirement. now when i tried to set the JAVA_HOME (export JAVA_HOME=”/Library/Java/JavaVirtualMachines/temurin-17.0.10/Contents/Home”), I am getting the following message when I try to echo $JAVA_HOME : Using system JDK, no JAVA_HOME set!
I am facing this problem for past 3 days. Please help me in this regard.
Regards,
~Sekhar
i was trying to set the JAVA_HOME and using the export JAVA_HOME=”/Library/Java/JavaVirtualMachines/temurin-17.0.10/Contents/Home” in .zshrc file. wheen run the direct export cmd in terminal as well as iTerm2 also, JAVA_HOME is not setting.
when I try to echo $JAVA_HOME I am getting the following message.
Using system JDK, no JAVA_HOME set!
I am not sure is it permissions issue on my mac or java installation issue.
2