Skip to content
Advertisement

Unable to set mvn JAVA_HOME setting

JavaScript

I’ve also tried setting JAVA_HOME manually with: export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_261.jdk/Contents/Home

for some reason mvn insists on using jdk 11. Do you know where it might be overridden?

My pom.xml:

JavaScript

Advertisement

Answer

Your JAVA_HOME exporting command is incorrect.

Your bash message also saying the same thing. You used back tick you need to use single quote or double quote

Correct statement would be

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