Skip to content
Advertisement

Showing JAVA_HOME is not defined correctly when I check Maven version in windows 10

Today I installed Java 16 and updated proper path in JAVA_HOME environment variable. But still when I run mvn -version command I am getting,

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

enter image description here

Advertisement

Answer

Take the bin off your JAVA_HOME variable.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement