I trying to run Maven 3.0.4 with java 6. Below is my bash profile and attached screenshots to validate location:
JAVA_HOME=/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
export JAVA_HOME
M2_HOME=/Users/bchart545/apache-maven-3.0.4
export M2_HOME
PATH=$PATH:$JAVA_HOME/bin:$M2_HOME/bin
export PATH
I've tried both:
Unsupported major.minor version 51.0 and
mvn -v gives me "Unsupported major.minor version 51.0"
Not seeing what I'm missing, I want it to run with Java 6. Thanks and sorry for the new post.