0

I'm trying to run the maven and returns me the error:

/opt/apache-maven-3.3.3/bin/mvn: 227: exec: /opt/jdk1.7.0_79/bin/java: not found

What can it be?

Eldad Assis
  • 10,464
  • 11
  • 52
  • 78
Roknauta
  • 178
  • 10

2 Answers2

0

run the command echo $JAVA_HOME and see where the java home is set and verify if the path is correct. Then check if $JAVA_HOME\bin\ folder is there and check for java command in it.

Chaitanya
  • 15,403
  • 35
  • 96
  • 137
0

I just was experiencing this same problem, and about 4 hours later I figured it out. I had installed the wrong version of the java JDK. I originally installed the Linux x-86 version, but my computer settings required the x-64 version. Make sure you have the version of the Java JDK that is compatible with your system. Here's the link to those JDK downloads: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

scrawl
  • 1
  • 1