M

Manisha Agrawal • 9.34K Points
Tutor III

Q. Which environment variable is used to specify the path to maven?

  • (A) PATH
  • (B) CLASSPATH
  • (C) JAVA_HOME
  • (D) MAVEN_HOME
  • Correct Answer - Option(D)
  • Views: 193
  • Filed under category JAVA

Explanation by: Mr. Dubey

 

  • MAVEN_HOME → ✅ This environment variable is used to specify the installation directory of Maven.
  • PATH → ❌ Used to set executable directories, including Maven’s bin directory.
  • CLASSPATH → ❌ Used to specify Java classes and libraries, not for Maven.
  • JAVA_HOME → ❌ Used to specify the JDK installation path, required for running Java applications but not directly for Maven.

Thus, MAVEN_HOME is the correct answer.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics