I have installed jdk on my mac, ran /usr/libexec/java_home and found the path to java to be this: /Library/Java/JavaVirtualMachines/jdk-9.0.4.jdk/Contents/Home
I added this line to my ~/.bashrc file:
export PATH=$PATH:/Library/Java/JavaVirtualMachines/jdk-9.0.4.jdk/Contents/Home
I still get this error message:
java: command not found
Can anyone help? I have been trying Stack Overflow solutions for hours now.
Thanks!
javais inside abinfolder in that location.