I installed Java JDK on Ubuntu 12.04 and added Java home to my path at
This looks a little bit strange but it's really my path.
After this I installed maven through:
sudo apt-get install maven
It installed all the needed libraries and now when I run
mvn -version, I see:
Error: JAVA_HOME is not defined correctly. We cannot execute /opt/jdk1.7.0_40/bin/java
What is wrong with it?
- How to solve this trouble?