I am new in MAC OS World. I have a new laptop. I've installed Java JDK from oracle web site. Java 8 is correctly installed.
The command java -version
works
I install maven :
1. I've downloaded the maven tar.gz and extract it on the Users directory.
I create the file .bash_profile with the content :
export M2_HOME=/Users/dgeorges/Tools/apache-maven-3.2.5
export PATH=$PATH:$M2_HOME/bin
- Then i ran mvn -version and i have the following error : Error: JAVA_HOME is not defined correctly. We cannot execute /usr/libexec/java_home/bin/java
How to see the java installed directory ? Why mac ox search on /usr/libexec/java_home/bin/java ?
Thanks