I'm trying to compile this example project with Ubuntu 16.04.2 LTS, java, eclipse, maven, tomcat8 but when I finally import the project and try to run this command mvn eclipse:eclipse
I get this error Error: JAVA_HOME is not defined correctly. We cannot execute /usr/lib/jvm/jdk1.8.0_111/bin/java/bin/java
In my /etc/environment
directory I already have this line JAVA_HOME="/usr/lib/jvm/jdk1.8.0_111"
My question is different from others that are already posted because, for example, when I do what says here then I get this bash: /usr/libexec/java_home: No such file or directory