I installed java jdk hotspot 1.7. When I type
java -version I am getting:
java version "1.7.0" Java(TM) SE Runtime Environment (build 1.7.0-b147)
This is correct.
And I tried to install maven, and added to
JAVA_HOME=/usr/lib/jvm/jdk1.7.0 M2_HOME=/usr/local/apache-maven/apache-maven-3.0.4 MAVEN_HOME=/usr/local/apache-maven/apache-maven-3.0.4 M2=/usr/local/apache-maven/apache-maven-3.0.4/bin
Now When I type mvn I am getting:
Error: JAVA_HOME is not defined correctly. We cannot execute ”/usr/lib/jvm/jdk1.7.0”/bin/java
However I am not putting " mark for JAV_HOME var in environment file.
It is trying to run from
path, Actually it should be
When I command
I am getting:
bash: ”/usr/lib/jvm/jdk1.7.0”: No such file or directory
I am sure the path(
/usr/lib/jvm/jdk1.7.0) is correct.