Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maven Java home configuration

I installed JDK and set up Maven. Call of mvn -version i get returns:

The JAVA_HOME environment variable is not defined correctly This environment variable is needed to run this program NB: JAVA_HOME should point to a JDK not a JRE

$JAVA_HOME variable is set to C:\Program Files\Java\jdk1.8.0_131\bin in system variables.

Call of %JAVA_HOME% returns path C:\Program Files\Java\jdk1.8.0_131\bin.

Where is the problem?

like image 967
user2109307 Avatar asked Jun 22 '17 11:06

user2109307


1 Answers

As you can see in the documentation the JAVA_HOME variable must point to the java installation path, not to the bin folder.

Change it to C:\Program Files\Java\jdk1.8.0_131

like image 72
BackSlash Avatar answered Oct 01 '22 00:10

BackSlash